package main;

import constants.Constants;
import domain.BioRecord;
import functions.Functions;

public class ReadBioFile {
	
	
	public static BioRecord readBioFile(){
		System.out.println("Inside Main ....");
		BioRecord bio = new BioRecord();
		
		double mlk[][][] = new double[3+1][Constants.MIM+1][Constants.SEA+1];
		double odds[] = new double[Constants.LACT+1];
		double pind[][] = new double[Constants.MIM+1][Constants.SEA+1];
		double concrisk[] = new double[Constants.LACT+1];
		int serve[] = new int[(Constants.SEA*2)+1];
		int enter[] = new int[(Constants.SEA*2)+1];
		double p_heifer[] = new double[(Constants.SEA*2)+1];
		double p_milk[] = new double[(Constants.SEA*2)+1];
		double p_bodyweight[] = new double[(Constants.SEA*2)+1];
		String startSeason = "";
		String policy = "";		
		double milk4[] = new double[Constants.LACT+1];
		
		
		
		
		
		
		/**
		 *  
		 * Copy Data Below this ... Do NOT touch the data above.
		 * 
		 * 
		 */
		
		
		
		
		
		
				
				
				
		bio.setUnit(1); 																							
		bio.setAnalysis(1); 																							
																									
		bio.getMilk_mpreg()[1] = 1; 	bio.getMilk_mpreg()[2] = 1; 	bio.getMilk_mpreg()[3] = 1; 	bio.getMilk_mpreg()[4] = 1; 	bio.getMilk_mpreg()[5] = 0.95; 	bio.getMilk_mpreg()[6] = 0.9; 	bio.getMilk_mpreg()[7] = 0.85; 	bio.getMilk_mpreg()[8] = 0.1; 	bio.getMilk_mpreg()[9] = 0.1; 															
																									
		mlk[1][1][1] = 22.2398100743773; 	mlk[1][1][2] = 22.723284206429; 	mlk[1][1][3] = 17.4050687538605; 	mlk[1][1][4] = 14.7459610275763; 	mlk[1][1][5] = 18.130279951938; 	mlk[1][1][6] = 16.1963834237313; 	mlk[1][1][7] = 17.1633316878347; 	mlk[1][1][8] = 23.2067583384807; 	mlk[1][1][9] = 20.5476506121964; 	mlk[1][1][10] = 17.1633316878347; 	mlk[1][1][11] = 18.3720170179639; 	mlk[1][1][12] = 19.5807023480931; 												
		mlk[1][2][1] = 29.6746191883966; 	mlk[1][2][2] = 30.3197196055356; 	mlk[1][2][3] = 23.223615017006; 	mlk[1][2][4] = 19.6755627227412; 	mlk[1][2][5] = 24.1912656427146; 	mlk[1][2][6] = 21.6108639741584; 	mlk[1][2][7] = 22.9010648084365; 	mlk[1][2][8] = 30.9648200226747; 	mlk[1][2][9] = 27.4167677284099; 	mlk[1][2][10] = 22.9010648084365; 	mlk[1][2][11] = 24.5138158512841; 	mlk[1][2][12] = 26.1265668941317; 												
		mlk[1][3][1] = 32.4225062745516; 	mlk[1][3][2] = 33.1273433674766; 	mlk[1][3][3] = 25.3741353453012; 	mlk[1][3][4] = 21.4975313342135; 	mlk[1][3][5] = 26.4313909846888; 	mlk[1][3][6] = 23.6120426129886; 	mlk[1][3][7] = 25.0217167988387; 	mlk[1][3][8] = 33.8321804604016; 	mlk[1][3][9] = 29.9555764493139; 	mlk[1][3][10] = 25.0217167988387; 	mlk[1][3][11] = 26.7838095311513; 	mlk[1][3][12] = 28.5459022634639; 												
		mlk[1][4][1] = 33.3858908202919; 	mlk[1][4][2] = 34.1116710555156; 	mlk[1][4][3] = 26.1280884680545; 	mlk[1][4][4] = 22.136297174324; 	mlk[1][4][5] = 27.2167588208901; 	mlk[1][4][6] = 24.3136378799952; 	mlk[1][4][7] = 25.7651983504426; 	mlk[1][4][8] = 34.8374512907393; 	mlk[1][4][9] = 30.8456599970088; 	mlk[1][4][10] = 25.7651983504426; 	mlk[1][4][11] = 27.579648938502; 	mlk[1][4][12] = 29.3940995265613; 												
		mlk[1][5][1] = 33.3968066396039; 	mlk[1][5][2] = 34.1228241752474; 	mlk[1][5][3] = 26.1366312831682; 	mlk[1][5][4] = 22.1435348371286; 	mlk[1][5][5] = 27.2256575866336; 	mlk[1][5][6] = 24.3215874440593; 	mlk[1][5][7] = 25.7736225153465; 	mlk[1][5][8] = 34.848841710891; 	mlk[1][5][9] = 30.8557452648514; 	mlk[1][5][10] = 25.7736225153465; 	mlk[1][5][11] = 27.5886663544554; 	mlk[1][5][12] = 29.4037101935643; 												
		mlk[1][6][1] = 32.8374069801811; 	mlk[1][6][2] = 33.5512636536633; 	mlk[1][6][3] = 25.6988402453591; 	mlk[1][6][4] = 21.772628541207; 	mlk[1][6][5] = 26.7696252555824; 	mlk[1][6][6] = 23.9141985616536; 	mlk[1][6][7] = 25.341911908618; 	mlk[1][6][8] = 34.2651203271455; 	mlk[1][6][9] = 30.3389086229934; 	mlk[1][6][10] = 25.341911908618; 	mlk[1][6][11] = 27.1265535923235; 	mlk[1][6][12] = 28.911195276029; 												
		mlk[1][7][1] = 31.9204449193845; 	mlk[1][7][2] = 32.6143676350233; 	mlk[1][7][3] = 24.9812177629966; 	mlk[1][7][4] = 21.1646428269832; 	mlk[1][7][5] = 26.0221018364548; 	mlk[1][7][6] = 23.2464109738996; 	mlk[1][7][7] = 24.6342564051772; 	mlk[1][7][8] = 33.3082903506621; 	mlk[1][7][9] = 29.4917154146487; 	mlk[1][7][10] = 24.6342564051772; 	mlk[1][7][11] = 26.3690631942742; 	mlk[1][7][12] = 28.1038699833711; 												
		mlk[1][8][1] = 30.7774105717909; 	mlk[1][8][2] = 31.4464847146559; 	mlk[1][8][3] = 24.0866691431407; 	mlk[1][8][4] = 20.4067613573831; 	mlk[1][8][5] = 25.0902803574382; 	mlk[1][8][6] = 22.4139837859781; 	mlk[1][8][7] = 23.7521320717082; 	mlk[1][8][8] = 32.1155588575209; 	mlk[1][8][9] = 28.4356510717633; 	mlk[1][8][10] = 23.7521320717082; 	mlk[1][8][11] = 25.4248174288707; 	mlk[1][8][12] = 27.0975027860333; 												
		mlk[1][9][1] = 29.4948734386667; 	mlk[1][9][2] = 30.1360663395073; 	mlk[1][9][3] = 23.0829444302609; 	mlk[1][9][4] = 19.5563834756377; 	mlk[1][9][5] = 24.0447337815218; 	mlk[1][9][6] = 21.4799621781595; 	mlk[1][9][7] = 22.7623479798406; 	mlk[1][9][8] = 30.7772592403479; 	mlk[1][9][9] = 27.2506982857247; 	mlk[1][9][10] = 22.7623479798406; 	mlk[1][9][11] = 24.3653302319421; 	mlk[1][9][12] = 25.9683124840435; 												
		mlk[1][10][1] = 28.1321537135434; 	mlk[1][10][2] = 28.7437222725334; 	mlk[1][10][3] = 22.0164681236426; 	mlk[1][10][4] = 18.6528410491972; 	mlk[1][10][5] = 22.9338209621277; 	mlk[1][10][6] = 20.4875467261674; 	mlk[1][10][7] = 21.7106838441476; 	mlk[1][10][8] = 29.3552908315235; 	mlk[1][10][9] = 25.9916637570781; 	mlk[1][10][10] = 21.7106838441476; 	mlk[1][10][11] = 23.2396052416228; 	mlk[1][10][12] = 24.768526639098; 												
		mlk[1][11][1] = 26.7309363201818; 	mlk[1][11][2] = 27.3120436314901; 	mlk[1][11][3] = 20.9198632070988; 	mlk[1][11][4] = 17.7237729949031; 	mlk[1][11][5] = 21.7915241740612; 	mlk[1][11][6] = 19.467094928828; 	mlk[1][11][7] = 20.6293095514446; 	mlk[1][11][8] = 27.8931509427984; 	mlk[1][11][9] = 24.6970607306027; 	mlk[1][11][10] = 20.6293095514446; 	mlk[1][11][11] = 22.0820778297154; 	mlk[1][11][12] = 23.5348461079861; 												
		mlk[1][12][1] = 25.3209461163059; 	mlk[1][12][2] = 25.8714014666604; 	mlk[1][12][3] = 19.8163926127612; 	mlk[1][12][4] = 16.7888881858115; 	mlk[1][12][5] = 20.6420756382929; 	mlk[1][12][6] = 18.440254236875; 	mlk[1][12][7] = 19.5411649375839; 	mlk[1][12][8] = 26.4218568170149; 	mlk[1][12][9] = 23.3943523900653; 	mlk[1][12][10] = 19.5411649375839; 	mlk[1][12][11] = 20.9173033134701; 	mlk[1][12][12] = 22.2934416893563; 												
		mlk[1][13][1] = 23.9235112567549; 	mlk[1][13][2] = 24.4435875884234; 	mlk[1][13][3] = 18.722747940069; 	mlk[1][13][4] = 15.8623281158918; 	mlk[1][13][5] = 19.5028624375719; 	mlk[1][13][6] = 17.4225571108976; 	mlk[1][13][7] = 18.4627097742347; 	mlk[1][13][8] = 24.963663920092; 	mlk[1][13][9] = 22.1032440959148; 	mlk[1][13][10] = 18.4627097742347; 	mlk[1][13][11] = 19.7629006034062; 	mlk[1][13][12] = 21.0630914325777; 												
		mlk[1][14][1] = 22.5539104643191; 	mlk[1][14][2] = 23.0442128657173; 	mlk[1][14][3] = 17.6508864503367; 	mlk[1][14][4] = 14.9542232426463; 	mlk[1][14][5] = 18.386340052434; 	mlk[1][14][6] = 16.4251304468411; 	mlk[1][14][7] = 17.4057352496375; 	mlk[1][14][8] = 23.5345152671155; 	mlk[1][14][9] = 20.8378520594252; 	mlk[1][14][10] = 17.4057352496375; 	mlk[1][14][11] = 18.6314912531331; 	mlk[1][14][12] = 19.8572472566287; 												
		mlk[1][15][1] = 21.2229790415901; 	mlk[1][15][2] = 21.6843481511898; 	mlk[1][15][3] = 16.6092879455922; 	mlk[1][15][4] = 14.0717578427934; 	mlk[1][15][5] = 17.3013416099919; 	mlk[1][15][6] = 15.4558651715928; 	mlk[1][15][7] = 16.3786033907923; 	mlk[1][15][8] = 22.1457172607896; 	mlk[1][15][9] = 19.6081871579908; 	mlk[1][15][10] = 16.3786033907923; 	mlk[1][15][11] = 17.5320261647918; 	mlk[1][15][12] = 18.6854489387913; 												
		mlk[1][16][1] = 19.9382416589805; 	mlk[1][16][2] = 20.3716816950453; 	mlk[1][16][3] = 15.6038412983325; 	mlk[1][16][4] = 13.2199210999762; 	mlk[1][16][5] = 16.2540013524297; 	mlk[1][16][6] = 14.5202412081706; 	mlk[1][16][7] = 15.3871212803001; 	mlk[1][16][8] = 20.8051217311101; 	mlk[1][16][9] = 18.4212015327537; 	mlk[1][16][10] = 15.3871212803001; 	mlk[1][16][11] = 16.4707213704621; 	mlk[1][16][12] = 17.5543214606241; 												
		mlk[1][17][1] = 18.7047312601484; 	mlk[1][17][2] = 19.1113558527603; 	mlk[1][17][3] = 14.6384853340292; 	mlk[1][17][4] = 12.4020500746636; 	mlk[1][17][5] = 15.2484222229471; 	mlk[1][17][6] = 13.6219238524994; 	mlk[1][17][7] = 14.4351730377232; 	mlk[1][17][8] = 19.5179804453722; 	mlk[1][17][9] = 17.2815451860067; 	mlk[1][17][10] = 14.4351730377232; 	mlk[1][17][11] = 15.451734519253; 	mlk[1][17][12] = 16.4682960007828; 												
		mlk[1][18][1] = 17.5255930124045; 	mlk[1][18][2] = 17.9065841648481; 	mlk[1][18][3] = 13.7156814879687; 	mlk[1][18][4] = 11.6202301495291; 	mlk[1][18][5] = 14.2871682166341; 	mlk[1][18][6] = 12.7632036068598; 	mlk[1][18][7] = 13.5251859117469; 	mlk[1][18][8] = 18.2875753172916; 	mlk[1][18][9] = 16.192123978852; 	mlk[1][18][10] = 13.5251859117469; 	mlk[1][18][11] = 14.4776637928559; 	mlk[1][18][12] = 15.4301416739648; 												
		mlk[1][19][1] = 16.4025370301108; 	mlk[1][19][2] = 16.7591139220698; 	mlk[1][19][3] = 12.8367681105215; 	mlk[1][19][4] = 10.8755952047474; 	mlk[1][19][5] = 13.3716334484599; 	mlk[1][19][6] = 11.9453258806242; 	mlk[1][19][7] = 12.6584796645421; 	mlk[1][19][8] = 17.1156908140287; 	mlk[1][19][9] = 15.1545179082546; 	mlk[1][19][10] = 12.6584796645421; 	mlk[1][19][11] = 13.5499218944394; 	mlk[1][19][12] = 14.4413641243367; 												
		mlk[1][20][1] = 15.3361822459096; 	mlk[1][20][2] = 15.669577512125; 	mlk[1][20][3] = 12.0022295837553; 	mlk[1][20][4] = 10.1685556195705; 	mlk[1][20][5] = 12.5023224830785; 	mlk[1][20][6] = 11.1687414182168; 	mlk[1][20][7] = 11.8355319506476; 	mlk[1][20][8] = 16.0029727783405; 	mlk[1][20][9] = 14.1692988141556; 	mlk[1][20][10] = 11.8355319506476; 	mlk[1][20][11] = 12.6690201161862; 	mlk[1][20][12] = 13.5025082817248; 												
		mlk[1][21][1] = 14.3263203904179; 	mlk[1][21][2] = 14.6377621380357; 	mlk[1][21][3] = 11.2119029142401; 	mlk[1][21][4] = 9.49897330234231; 	mlk[1][21][5] = 11.6790655356668; 	mlk[1][21][6] = 10.4332985451957; 	mlk[1][21][7] = 11.0561820404312; 	mlk[1][21][8] = 14.9492038856535; 	mlk[1][21][9] = 13.2362742737557; 	mlk[1][21][10] = 11.0561820404312; 	mlk[1][21][11] = 11.8347864094757; 	mlk[1][21][12] = 12.6133907785201; 												
		mlk[1][22][1] = 13.3721203525895; 	mlk[1][22][2] = 13.662818621124; 	mlk[1][22][3] = 10.4651376672439; 	mlk[1][22][4] = 8.86629719030388; 	mlk[1][22][5] = 10.9011850700458; 	mlk[1][22][6] = 9.73839199590755; 	mlk[1][22][7] = 10.3197885329767; 	mlk[1][22][8] = 13.9535168896586; 	mlk[1][22][9] = 12.3546764127185; 	mlk[1][22][10] = 10.3197885329767; 	mlk[1][22][11] = 11.046534204313; 	mlk[1][22][12] = 11.7732798756494; 												
		mlk[1][23][1] = 12.4722874117113; 	mlk[1][23][2] = 12.7434240945746; 	mlk[1][23][3] = 9.76092058307838; 	mlk[1][23][4] = 8.26966882733029; 	mlk[1][23][5] = 10.1676256073733; 	mlk[1][23][6] = 9.08307887592016; 	mlk[1][23][7] = 9.62535224164674; 	mlk[1][23][8] = 13.0145607774378; 	mlk[1][23][9] = 11.5233090216898; 	mlk[1][23][10] = 9.62535224164674; 	mlk[1][23][11] = 10.303193948805; 	mlk[1][23][12] = 10.9810356559632; 												
		mlk[1][24][1] = 11.6251878921242; 	mlk[1][24][2] = 11.8779093680399; 	mlk[1][24][3] = 9.09797313296674; 	mlk[1][24][4] = 7.70800501543015; 	mlk[1][24][5] = 9.47705534684035; 	mlk[1][24][6] = 8.46616944317738; 	mlk[1][24][7] = 8.97161239500887; 	mlk[1][24][8] = 12.1306308439557; 	mlk[1][24][9] = 10.7406627264191; 	mlk[1][24][10] = 8.97161239500887; 	mlk[1][24][11] = 9.60341608479822; 	mlk[1][24][12] = 10.2352197745876; 												
																									
		mlk[2][1][1] = 33.7497773774847; 	mlk[2][1][2] = 34.4834681900387; 	mlk[2][1][3] = 26.4128692519445; 	mlk[2][1][4] = 22.3775697828975; 	mlk[2][1][5] = 27.5134054707756; 	mlk[2][1][6] = 24.5786422205595; 	mlk[2][1][7] = 26.0460238456675; 	mlk[2][1][8] = 35.2171590025927; 	mlk[2][1][9] = 31.1818595335456; 	mlk[2][1][10] = 26.0460238456675; 	mlk[2][1][11] = 27.8802508770526; 	mlk[2][1][12] = 29.7144779084376; 												
		mlk[2][2][1] = 40.2761690238691; 	mlk[2][2][2] = 41.1517379156924; 	mlk[2][2][3] = 31.5204801056367; 	mlk[2][2][4] = 26.7048512006089; 	mlk[2][2][5] = 32.8338334433716; 	mlk[2][2][6] = 29.3315578760786; 	mlk[2][2][7] = 31.0826956597251; 	mlk[2][2][8] = 42.0273068075156; 	mlk[2][2][9] = 37.2116779024878; 	mlk[2][2][10] = 31.0826956597251; 	mlk[2][2][11] = 33.2716178892832; 	mlk[2][2][12] = 35.4605401188413; 												
		mlk[2][3][1] = 41.3743237331203; 	mlk[2][3][2] = 42.2737655534055; 	mlk[2][3][3] = 32.379905530268; 	mlk[2][3][4] = 27.4329755186993; 	mlk[2][3][5] = 33.7290682606959; 	mlk[2][3][6] = 30.131300979555; 	mlk[2][3][7] = 31.9301846201254; 	mlk[2][3][8] = 43.1732073736907; 	mlk[2][3][9] = 38.226277362122; 	mlk[2][3][10] = 31.9301846201254; 	mlk[2][3][11] = 34.1787891708385; 	mlk[2][3][12] = 36.4273937215515; 												
		mlk[2][4][1] = 40.6541494828555; 	mlk[2][4][2] = 41.5379353411784; 	mlk[2][4][3] = 31.816290899626; 	mlk[2][4][4] = 26.9554686788498; 	mlk[2][4][5] = 33.1419696871105; 	mlk[2][4][6] = 29.6068262538187; 	mlk[2][4][7] = 31.3743979704646; 	mlk[2][4][8] = 42.4217211995014; 	mlk[2][4][9] = 37.5608989787252; 	mlk[2][4][10] = 31.3743979704646; 	mlk[2][4][11] = 33.5838626162719; 	mlk[2][4][12] = 35.7933272620793; 												
		mlk[2][5][1] = 39.0884133100766; 	mlk[2][5][2] = 39.9381614255131; 	mlk[2][5][3] = 30.5909321557121; 	mlk[2][5][4] = 25.9173175208117; 	mlk[2][5][5] = 31.8655543288668; 	mlk[2][5][6] = 28.466561867121; 	mlk[2][5][7] = 30.1660580979939; 	mlk[2][5][8] = 40.7879095409495; 	mlk[2][5][9] = 36.114294906049; 	mlk[2][5][10] = 30.1660580979939; 	mlk[2][5][11] = 32.290428386585; 	mlk[2][5][12] = 34.4147986751761; 												
		mlk[2][6][1] = 37.1007474250304; 	mlk[2][6][2] = 37.9072854125311; 	mlk[2][6][3] = 29.0353675500238; 	mlk[2][6][4] = 24.5994086187702; 	mlk[2][6][5] = 30.2451745312748; 	mlk[2][6][6] = 27.0190225812722; 	mlk[2][6][7] = 28.6320985562735; 	mlk[2][6][8] = 38.7138234000318; 	mlk[2][6][9] = 34.2778644687781; 	mlk[2][6][10] = 28.6320985562735; 	mlk[2][6][11] = 30.6484435250251; 	mlk[2][6][12] = 32.6647884937768; 												
		mlk[2][7][1] = 34.9135814647962; 	mlk[2][7][2] = 35.6725723662048; 	mlk[2][7][3] = 27.32367245071; 	mlk[2][7][4] = 23.1492224929627; 	mlk[2][7][5] = 28.462158802823; 	mlk[2][7][6] = 25.4261951971885; 	mlk[2][7][7] = 26.9441770000057; 	mlk[2][7][8] = 36.4315632676134; 	mlk[2][7][9] = 32.257113309866; 	mlk[2][7][10] = 26.9441770000057; 	mlk[2][7][11] = 28.8416542535273; 	mlk[2][7][12] = 30.7391315070488; 												
		mlk[2][8][1] = 32.6552821077816; 	mlk[2][8][2] = 33.3651795449072; 	mlk[2][8][3] = 25.5563077365247; 	mlk[2][8][4] = 21.6518718323334; 	mlk[2][8][5] = 26.6211538922132; 	mlk[2][8][6] = 23.7815641437105; 	mlk[2][8][7] = 25.2013590179618; 	mlk[2][8][8] = 34.0750769820329; 	mlk[2][8][9] = 30.1706410778417; 	mlk[2][8][10] = 25.2013590179618; 	mlk[2][8][11] = 26.9761026107761; 	mlk[2][8][12] = 28.7508462035903; 												
		mlk[2][9][1] = 30.4036669291861; 	mlk[2][9][2] = 31.0646162102554; 	mlk[2][9][3] = 23.7941741184935; 	mlk[2][9][4] = 20.1589530726125; 	mlk[2][9][5] = 24.7855980400974; 	mlk[2][9][6] = 22.1418009158203; 	mlk[2][9][7] = 23.4636994779589; 	mlk[2][9][8] = 31.7255654913247; 	mlk[2][9][9] = 28.0903444454437; 	mlk[2][9][10] = 23.4636994779589; 	mlk[2][9][11] = 25.116072680632; 	mlk[2][9][12] = 26.7684458833052; 												
		mlk[2][10][1] = 28.206875513485; 	mlk[2][10][2] = 28.8200684594303; 	mlk[2][10][3] = 22.0749460540317; 	mlk[2][10][4] = 18.7023848513324; 	mlk[2][10][5] = 22.9947354729497; 	mlk[2][10][6] = 20.5419636891684; 	mlk[2][10][7] = 21.7683495810591; 	mlk[2][10][8] = 29.4332614053756; 	mlk[2][10][9] = 26.0607002026763; 	mlk[2][10][10] = 21.7683495810591; 	mlk[2][10][11] = 23.3013319459224; 	mlk[2][10][12] = 24.8343143107857; 												
		mlk[2][11][1] = 26.0945646763563; 	mlk[2][11][2] = 26.6618378214944; 	mlk[2][11][3] = 20.4218332249745; 	mlk[2][11][4] = 17.3018309267145; 	mlk[2][11][5] = 21.2727429426817; 	mlk[2][11][6] = 19.003650362129; 	mlk[2][11][7] = 20.1381966524054; 	mlk[2][11][8] = 27.2291109666326; 	mlk[2][11][9] = 24.1091086683726; 	mlk[2][11][10] = 20.1381966524054; 	mlk[2][11][11] = 21.5563795152508; 	mlk[2][11][12] = 22.9745623780963; 												
		mlk[2][12][1] = 24.0844124789731; 	mlk[2][12][2] = 24.6079866632986; 	mlk[2][12][3] = 18.8486706357181; 	mlk[2][12][4] = 15.9690126219278; 	mlk[2][12][5] = 19.6340319122064; 	mlk[2][12][6] = 17.5397351749044; 	mlk[2][12][7] = 18.5868835435554; 	mlk[2][12][8] = 25.1315608476241; 	mlk[2][12][9] = 22.2519028338339; 	mlk[2][12][10] = 18.5868835435554; 	mlk[2][12][11] = 19.8958190043691; 	mlk[2][12][12] = 21.2047544651829; 												
		mlk[2][13][1] = 22.1861263961991; 	mlk[2][13][2] = 22.6684334917687; 	mlk[2][13][3] = 17.3630554405037; 	mlk[2][13][4] = 14.7103664148712; 	mlk[2][13][5] = 18.086516083858; 	mlk[2][13][6] = 16.1572877015798; 	mlk[2][13][7] = 17.1219018927189; 	mlk[2][13][8] = 23.1507405873382; 	mlk[2][13][9] = 20.4980515617057; 	mlk[2][13][10] = 17.1219018927189; 	mlk[2][13][11] = 18.3276696316428; 	mlk[2][13][12] = 19.5334373705666; 												
		mlk[2][14][1] = 20.4040257466921; 	mlk[2][14][2] = 20.8475915237941; 	mlk[2][14][3] = 15.9683679756721; 	mlk[2][14][4] = 13.528756201611; 	mlk[2][14][5] = 16.6337166413251; 	mlk[2][14][6] = 14.859453532917; 	mlk[2][14][7] = 15.746585087121; 	mlk[2][14][8] = 21.2911573008961; 	mlk[2][14][9] = 18.8515455268351; 	mlk[2][14][10] = 15.746585087121; 	mlk[2][14][11] = 16.8554995298761; 	mlk[2][14][12] = 17.9644139726311; 												
		mlk[2][15][1] = 18.738762843099; 	mlk[2][15][2] = 19.1461272527316; 	mlk[2][15][3] = 14.6651187467731; 	mlk[2][15][4] = 12.4246144937939; 	mlk[2][15][5] = 15.276165361222; 	mlk[2][15][6] = 13.6467077226917; 	mlk[2][15][7] = 14.4614365419568; 	mlk[2][15][8] = 19.5534916623642; 	mlk[2][15][9] = 17.3129874093849; 	mlk[2][15][10] = 14.4614365419568; 	mlk[2][15][11] = 15.4798475660383; 	mlk[2][15][12] = 16.4982585901198; 												
		mlk[2][16][1] = 17.1885000458133; 	mlk[2][16][2] = 17.5621630902875; 	mlk[2][16][3] = 13.4518696010713; 	mlk[2][16][4] = 11.3967228564631; 	mlk[2][16][5] = 14.0123641677826; 	mlk[2][16][6] = 12.5177119898858; 	mlk[2][16][7] = 13.2650380788342; 	mlk[2][16][8] = 17.9358261347617; 	mlk[2][16][9] = 15.8806793901536; 	mlk[2][16][10] = 13.2650380788342; 	mlk[2][16][11] = 14.1991956900197; 	mlk[2][16][12] = 15.1333533012052; 												
		mlk[2][17][1] = 15.7497304249356; 	mlk[2][17][2] = 16.092115868956; 	mlk[2][17][3] = 12.3258759847322; 	mlk[2][17][4] = 10.4427560426204; 	mlk[2][17][5] = 12.8394541507627; 	mlk[2][17][6] = 11.4699123746814; 	mlk[2][17][7] = 12.1546832627221; 	mlk[2][17][8] = 16.4345013129763; 	mlk[2][17][9] = 14.5513813708644; 	mlk[2][17][10] = 12.1546832627221; 	mlk[2][17][11] = 13.0106468727729; 	mlk[2][17][12] = 13.8666104828238; 												
		mlk[2][18][1] = 14.4178579945231; 	mlk[2][18][2] = 14.7312896900562; 	mlk[2][18][3] = 11.283541039192; 	mlk[2][18][4] = 9.5596667137599; 	mlk[2][18][5] = 11.7536885824917; 	mlk[2][18][6] = 10.4999618003592; 	mlk[2][18][7] = 11.1268251914255; 	mlk[2][18][8] = 15.0447213855893; 	mlk[2][18][9] = 13.3208470601572; 	mlk[2][18][10] = 11.1268251914255; 	mlk[2][18][11] = 11.9104044302582; 	mlk[2][18][12] = 12.693983669091; 												
		mlk[2][19][1] = 13.1876117983241; 	mlk[2][19][2] = 13.4742990113311; 	mlk[2][19][3] = 10.3207396682536; 	mlk[2][19][4] = 8.74395999671488; 	mlk[2][19][5] = 10.7507704877642; 	mlk[2][19][6] = 9.60402163573602; 	mlk[2][19][7] = 10.1773960617501; 	mlk[2][19][8] = 13.7609862243382; 	mlk[2][19][9] = 12.1842065527994; 	mlk[2][19][10] = 10.1773960617501; 	mlk[2][19][11] = 10.8941140942677; 	mlk[2][19][12] = 11.6108321267853; 												
		mlk[2][20][1] = 12.0533429034584; 	mlk[2][20][2] = 12.3153720970119; 	mlk[2][20][3] = 9.43305096792398; 	mlk[2][20][4] = 7.99189040338004; 	mlk[2][20][5] = 9.82609475825414; 	mlk[2][20][6] = 8.77797798404037; 	mlk[2][20][7] = 9.30203637114726; 	mlk[2][20][8] = 12.5774012905653; 	mlk[2][20][9] = 11.1362407260214; 	mlk[2][20][10] = 9.30203637114726; 	mlk[2][20][11] = 9.95710935503087; 	mlk[2][20][12] = 10.6121823389145; 												
		mlk[2][21][1] = 11.0092375547148; 	mlk[2][21][2] = 11.2485688059042; 	mlk[2][21][3] = 8.61592504282025; 	mlk[2][21][4] = 7.29960316127827; 	mlk[2][21][5] = 8.97492191960443; 	mlk[2][21][6] = 8.01759691484663; 	mlk[2][21][7] = 8.49625941722553; 	mlk[2][21][8] = 11.4879000570937; 	mlk[2][21][9] = 10.1715781755517; 	mlk[2][21][10] = 8.49625941722553; 	mlk[2][21][11] = 9.09458754519916; 	mlk[2][21][12] = 9.69291567317279; 												
		mlk[2][22][1] = 10.0494695355125; 	mlk[2][22][2] = 10.2679362645454; 	mlk[2][22][3] = 7.86480224518368; 	mlk[2][22][4] = 6.66323523550284; 	mlk[2][22][5] = 8.192502338733; 	mlk[2][22][6] = 7.31863542260148; 	mlk[2][22][7] = 7.75556888066724; 	mlk[2][22][8] = 10.4864029935782; 	mlk[2][22][9] = 9.2848359838974; 	mlk[2][22][10] = 7.75556888066724; 	mlk[2][22][11] = 8.30173570324944; 	mlk[2][22][12] = 8.84790252583164; 												
		mlk[2][23][1] = 9.16830801323923; 	mlk[2][23][2] = 9.3676190570053; 	mlk[2][23][3] = 7.17519757557852; 	mlk[2][23][4] = 6.07898683486514; 	mlk[2][23][5] = 7.47416414122763; 	mlk[2][23][6] = 6.67691996616335; 	mlk[2][23][7] = 7.07554205369549; 	mlk[2][23][8] = 9.56693010077137; 	mlk[2][23][9] = 8.47071936005798; 	mlk[2][23][10] = 7.07554205369549; 	mlk[2][23][11] = 7.57381966311067; 	mlk[2][23][12] = 8.07209727252584; 												
		mlk[2][24][1] = 8.36019255319485; 	mlk[2][24][2] = 8.54193586956865; 	mlk[2][24][3] = 6.54275938945684; 	mlk[2][24][4] = 5.54317114940094; 	mlk[2][24][5] = 6.81537436401754; 	mlk[2][24][6] = 6.08840109852234; 	mlk[2][24][7] = 6.45188773126994; 	mlk[2][24][8] = 8.72367918594246; 	mlk[2][24][9] = 7.72409094588655; 	mlk[2][24][10] = 6.45188773126994; 	mlk[2][24][11] = 6.90624602220444; 	mlk[2][24][12] = 7.36060431313895; 												
																									
		mlk[3][1][1] = 36.1712529426671; 	mlk[3][1][2] = 36.9575845283773; 	mlk[3][1][3] = 28.3079370855656; 	mlk[3][1][4] = 23.9831133641597; 	mlk[3][1][5] = 29.4874344641308; 	mlk[3][1][6] = 26.3421081212902; 	mlk[3][1][7] = 27.9147712927105; 	mlk[3][1][8] = 37.7439161140874; 	mlk[3][1][9] = 33.4190923926816; 	mlk[3][1][10] = 27.9147712927105; 	mlk[3][1][11] = 29.8806002569859; 	mlk[3][1][12] = 31.8464292212613; 												
		mlk[3][2][1] = 42.7991292568405; 	mlk[3][2][2] = 43.7295451102501; 	mlk[3][2][3] = 33.4949707227448; 	mlk[3][2][4] = 28.3776835289921; 	mlk[3][2][5] = 34.8905945028591; 	mlk[3][2][6] = 31.1689310892208; 	mlk[3][2][7] = 33.02976279604; 	mlk[3][2][8] = 44.6599609636597; 	mlk[3][2][9] = 39.542673769907; 	mlk[3][2][10] = 33.02976279604; 	mlk[3][2][11] = 35.3558024295639; 	mlk[3][2][12] = 37.6818420630879; 												
		mlk[3][3][1] = 43.7208088514239; 	mlk[3][3][2] = 44.6712612177592; 	mlk[3][3][3] = 34.2162851880709; 	mlk[3][3][4] = 28.9887971732267; 	mlk[3][3][5] = 35.6419637375738; 	mlk[3][3][6] = 31.8401542722326; 	mlk[3][3][7] = 33.7410590049032; 	mlk[3][3][8] = 45.6217135840945; 	mlk[3][3][9] = 40.3942255692503; 	mlk[3][3][10] = 33.7410590049032; 	mlk[3][3][11] = 36.1171899207415; 	mlk[3][3][12] = 38.4933208365797; 												
		mlk[3][4][1] = 42.7573975710915; 	mlk[3][4][2] = 43.6869062139413; 	mlk[3][4][3] = 33.4623111425934; 	mlk[3][4][4] = 28.3500136069194; 	mlk[3][4][5] = 34.8565741068681; 	mlk[3][4][6] = 31.1385395354688; 	mlk[3][4][7] = 32.9975568211685; 	mlk[3][4][8] = 44.6164148567912; 	mlk[3][4][9] = 39.5041173211172; 	mlk[3][4][10] = 32.9975568211685; 	mlk[3][4][11] = 35.321328428293; 	mlk[3][4][12] = 37.6451000354175; 												
		mlk[3][5][1] = 40.934401831575; 	mlk[3][5][2] = 41.8242801322614; 	mlk[3][5][3] = 32.0356188247109; 	mlk[3][5][4] = 27.1412881709356; 	mlk[3][5][5] = 33.3704362757405; 	mlk[3][5][6] = 29.8109230729948; 	mlk[3][5][7] = 31.5906796743677; 	mlk[3][5][8] = 42.7141584329478; 	mlk[3][5][9] = 37.8198277791725; 	mlk[3][5][10] = 31.5906796743677; 	mlk[3][5][11] = 33.8153754260837; 	mlk[3][5][12] = 36.0400711777997; 												
		mlk[3][6][1] = 38.6960877791252; 	mlk[3][6][2] = 39.5373070786714; 	mlk[3][6][3] = 30.2838947836632; 	mlk[3][6][4] = 25.6571886361591; 	mlk[3][6][5] = 31.5457237329825; 	mlk[3][6][6] = 28.1808465347977; 	mlk[3][6][7] = 29.8632851338901; 	mlk[3][6][8] = 40.3785263782176; 	mlk[3][6][9] = 35.7518202307135; 	mlk[3][6][10] = 29.8632851338901; 	mlk[3][6][11] = 31.9663333827556; 	mlk[3][6][12] = 34.0693816316211; 												
		mlk[3][7][1] = 36.2740287985778; 	mlk[3][7][2] = 37.0625946420252; 	mlk[3][7][3] = 28.3883703641044; 	mlk[3][7][4] = 24.051258225144; 	mlk[3][7][5] = 29.5712191292754; 	mlk[3][7][6] = 26.416955755486; 	mlk[3][7][7] = 27.9940874423807; 	mlk[3][7][8] = 37.8511604854725; 	mlk[3][7][9] = 33.5140483465121; 	mlk[3][7][10] = 27.9940874423807; 	mlk[3][7][11] = 29.9655020509991; 	mlk[3][7][12] = 31.9369166596174; 												
		mlk[3][8][1] = 33.8005554580136; 	mlk[3][8][2] = 34.5353501418834; 	mlk[3][8][3] = 26.452608619315; 	mlk[3][8][4] = 22.4112378580307; 	mlk[3][8][5] = 27.5548006451198; 	mlk[3][8][6] = 24.6156219096403; 	mlk[3][8][7] = 26.08521127738; 	mlk[3][8][8] = 35.2701448257533; 	mlk[3][8][9] = 31.2287740644691; 	mlk[3][8][10] = 26.08521127738; 	mlk[3][8][11] = 27.9221979870547; 	mlk[3][8][12] = 29.7591846967293; 												
		mlk[3][9][1] = 31.3548205798819; 	mlk[3][9][2] = 32.0364471142272; 	mlk[3][9][3] = 24.5385552364293; 	mlk[3][9][4] = 20.7896092975304; 	mlk[3][9][5] = 25.5609950379472; 	mlk[3][9][6] = 22.8344889005662; 	mlk[3][9][7] = 24.1977419692567; 	mlk[3][9][8] = 32.7180736485724; 	mlk[3][9][9] = 28.9691277096735; 	mlk[3][9][10] = 24.1977419692567; 	mlk[3][9][11] = 25.9018083051199; 	mlk[3][9][12] = 27.605874640983; 												
		mlk[3][10][1] = 28.9848833572715; 	mlk[3][10][2] = 29.6149895172121; 	mlk[3][10][3] = 22.6838217578646; 	mlk[3][10][4] = 19.2182378781909; 	mlk[3][10][5] = 23.6289809977756; 	mlk[3][10][6] = 21.1085563580129; 	mlk[3][10][7] = 22.3687686778943; 	mlk[3][10][8] = 30.2450956771528; 	mlk[3][10][9] = 26.7795117974791; 	mlk[3][10][10] = 22.3687686778943; 	mlk[3][10][11] = 23.944034077746; 	mlk[3][10][12] = 25.5192994775977; 												
		mlk[3][11][1] = 26.7195443346283; 	mlk[3][11][2] = 27.3004039940767; 	mlk[3][11][3] = 20.9109477401439; 	mlk[3][11][4] = 17.7162196131775; 	mlk[3][11][5] = 21.7822372293165; 	mlk[3][11][6] = 19.4587985915228; 	mlk[3][11][7] = 20.6205179104197; 	mlk[3][11][8] = 27.8812636535252; 	mlk[3][11][9] = 24.6865355265587; 	mlk[3][11][10] = 20.6205179104197; 	mlk[3][11][11] = 22.0726670590408; 	mlk[3][11][12] = 23.5248162076619; 												
		mlk[3][12][1] = 24.5752106994944; 	mlk[3][12][2] = 25.109454410353; 	mlk[3][12][3] = 19.2327735909087; 	mlk[3][12][4] = 16.2944331811865; 	mlk[3][12][5] = 20.0341391571965; 	mlk[3][12][6] = 17.8971643137622; 	mlk[3][12][7] = 18.9656517354794; 	mlk[3][12][8] = 25.6436981212115; 	mlk[3][12][9] = 22.7053577114894; 	mlk[3][12][10] = 18.9656517354794; 	mlk[3][12][11] = 20.3012610126258; 	mlk[3][12][12] = 21.6368702897722; 												
		mlk[3][13][1] = 22.5601176582559; 	mlk[3][13][2] = 23.0505549986528; 	mlk[3][13][3] = 17.6557442542872; 	mlk[3][13][4] = 14.9583388821044; 	mlk[3][13][5] = 18.3914002648825; 	mlk[3][13][6] = 16.429650903295; 	mlk[3][13][7] = 17.4105255840888; 	mlk[3][13][8] = 23.5409923390496; 	mlk[3][13][9] = 20.8435869668669; 	mlk[3][13][10] = 17.4105255840888; 	mlk[3][13][11] = 18.6366189350809; 	mlk[3][13][12] = 19.8627122860731; 												
		mlk[3][14][1] = 20.677039923808; 	mlk[3][14][2] = 21.1265407917168; 	mlk[3][14][3] = 16.1820312447193; 	mlk[3][14][4] = 13.7097764712205; 	mlk[3][14][5] = 16.8562825465826; 	mlk[3][14][6] = 15.0582790749471; 	mlk[3][14][7] = 15.9572808107648; 	mlk[3][14][8] = 21.5760416596257; 	mlk[3][14][9] = 19.1037868861269; 	mlk[3][14][10] = 15.9572808107648; 	mlk[3][14][11] = 17.081032980537; 	mlk[3][14][12] = 18.2047851503092; 												
		mlk[3][15][1] = 18.9250916714182; 	mlk[3][15][2] = 19.3365067077533; 	mlk[3][15][3] = 14.8109413080664; 	mlk[3][15][4] = 12.5481586082229; 	mlk[3][15][5] = 15.4280638625692; 	mlk[3][15][6] = 13.7824037172284; 	mlk[3][15][7] = 14.6052337898988; 	mlk[3][15][8] = 19.7479217440885; 	mlk[3][15][9] = 17.485139044245; 	mlk[3][15][10] = 14.6052337898988; 	mlk[3][15][11] = 15.6337713807367; 	mlk[3][15][12] = 16.6623089715747; 												
		mlk[3][16][1] = 17.300951272967; 	mlk[3][16][2] = 17.6770589093359; 	mlk[3][16][3] = 13.5398749092785; 	mlk[3][16][4] = 11.4712829092499; 	mlk[3][16][5] = 14.1040363638318; 	mlk[3][16][6] = 12.5996058183564; 	mlk[3][16][7] = 13.3518210910941; 	mlk[3][16][8] = 18.0531665457047; 	mlk[3][16][9] = 15.984574545676; 	mlk[3][16][10] = 13.3518210910941; 	mlk[3][16][11] = 14.2920901820162; 	mlk[3][16][12] = 15.2323592729383; 												
		mlk[3][17][1] = 15.799709852746; 	mlk[3][17][2] = 16.1431818060665; 	mlk[3][17][3] = 12.3649903195403; 	mlk[3][17][4] = 10.4758945762772; 	mlk[3][17][5] = 12.8801982495212; 	mlk[3][17][6] = 11.5063104362389; 	mlk[3][17][7] = 12.19325434288; 	mlk[3][17][8] = 16.4866537593871; 	mlk[3][17][9] = 14.597558016124; 	mlk[3][17][10] = 12.19325434288; 	mlk[3][17][11] = 13.0519342261814; 	mlk[3][17][12] = 13.9106141094829; 												
		mlk[3][18][1] = 14.4154666215263; 	mlk[3][18][2] = 14.7288463306899; 	mlk[3][18][3] = 11.2816695298901; 	mlk[3][18][4] = 9.55808112949026; 	mlk[3][18][5] = 11.7517390936356; 	mlk[3][18][6] = 10.4982202569811; 	mlk[3][18][7] = 11.1249796753083; 	mlk[3][18][8] = 15.0422260398535; 	mlk[3][18][9] = 13.3186376394536; 	mlk[3][18][10] = 11.1249796753083; 	mlk[3][18][11] = 11.9084289482174; 	mlk[3][18][12] = 12.6918782211264; 												
		mlk[3][19][1] = 13.1417497186812; 	mlk[3][19][2] = 13.4274399299569; 	mlk[3][19][3] = 10.2848476059245; 	mlk[3][19][4] = 8.71355144390822; 	mlk[3][19][5] = 10.713382922838; 	mlk[3][19][6] = 9.57062207773525; 	mlk[3][19][7] = 10.1420025002866; 	mlk[3][19][8] = 13.7131301412326; 	mlk[3][19][9] = 12.1418339792164; 	mlk[3][19][10] = 10.1420025002866; 	mlk[3][19][11] = 10.8562280284758; 	mlk[3][19][12] = 11.570453556665; 												
		mlk[3][20][1] = 11.9718145227053; 	mlk[3][20][2] = 12.2320713601554; 	mlk[3][20][3] = 9.36924614820417; 	mlk[3][20][4] = 7.93783354222854; 	mlk[3][20][5] = 9.75963140437935; 	mlk[3][20][6] = 8.71860405457889; 	mlk[3][20][7] = 9.23911772947912; 	mlk[3][20][8] = 12.4923281976056; 	mlk[3][20][9] = 11.0609155916299; 	mlk[3][20][10] = 9.23911772947912; 	mlk[3][20][11] = 9.88975982310441; 	mlk[3][20][12] = 10.5404019167297; 												
		mlk[3][21][1] = 10.8988546139372; 	mlk[3][21][2] = 11.1357862359793; 	mlk[3][21][3] = 8.52953839351606; 	mlk[3][21][4] = 7.22641447228444; 	mlk[3][21][5] = 8.88493582657923; 	mlk[3][21][6] = 7.93720933841078; 	mlk[3][21][7] = 8.41107258249501; 	mlk[3][21][8] = 11.3727178580214; 	mlk[3][21][9] = 10.0695939367898; 	mlk[3][21][10] = 8.41107258249501; 	mlk[3][21][11] = 9.00340163760029; 	mlk[3][21][12] = 9.59573069270557; 												
		mlk[3][22][1] = 9.91614973766749; 	mlk[3][22][2] = 10.1317182102255; 	mlk[3][22][3] = 7.7604650120876; 	mlk[3][22][4] = 6.57483841301866; 	mlk[3][22][5] = 8.08381772092459; 	mlk[3][22][6] = 7.22154383069263; 	mlk[3][22][7] = 7.65268077580861; 	mlk[3][22][8] = 10.3472866827835; 	mlk[3][22][9] = 9.16166008371453; 	mlk[3][22][10] = 7.65268077580861; 	mlk[3][22][11] = 8.19160195720358; 	mlk[3][22][12] = 8.73052313859855; 												
		mlk[3][23][1] = 9.01716793121633; 	mlk[3][23][2] = 9.21319332102538; 	mlk[3][23][3] = 7.05691403312582; 	mlk[3][23][4] = 5.97877438917604; 	mlk[3][23][5] = 7.3509521178394; 	mlk[3][23][6] = 6.5668505586032; 	mlk[3][23][7] = 6.9589013382213; 	mlk[3][23][8] = 9.40921871083443; 	mlk[3][23][9] = 8.33107906688465; 	mlk[3][23][10] = 6.9589013382213; 	mlk[3][23][11] = 7.44896481274392; 	mlk[3][23][12] = 7.93902828726655; 												
		mlk[3][24][1] = 8.19563410429041; 	mlk[3][24][2] = 8.37380006307933; 	mlk[3][24][3] = 6.41397451640119; 	mlk[3][24][4] = 5.43406174306212; 	mlk[3][24][5] = 6.68122345458458; 	mlk[3][24][6] = 5.96855961942889; 	mlk[3][24][7] = 6.32489153700673; 	mlk[3][24][8] = 8.55196602186826; 	mlk[3][24][9] = 7.57205324852919; 	mlk[3][24][10] = 6.32489153700673; 	mlk[3][24][11] = 6.77030643397904; 	mlk[3][24][12] = 7.21572133095134; 												
																									
		odds[1] = 1; 	odds[2] = 1.36; 	odds[3] = 2.02; 	odds[4] = 2.61; 	odds[5] = 3.24; 	odds[6] = 3.67; 	odds[7] = 4.45; 	odds[8] = 5.52; 	odds[9] = 5.52; 	odds[10] = 5.52; 	odds[11] = 5.52; 	odds[12] = 5.52; 												
																									
		pind[1][1] = 0.02084359; 	pind[1][2] = 0.018267416; 	pind[1][3] = 0.022951368; 	pind[1][4] = 0.01686223; 	pind[1][5] = 0.017096427; 	pind[1][6] = 0.017330625; 	pind[1][7] = 0.021546182; 	pind[1][8] = 0.019204206; 	pind[1][9] = 0.016393834; 	pind[1][10] = 0.018735811; 	pind[1][11] = 0.022482973; 	pind[1][12] = 0.018970008; 												
		pind[2][1] = 0.013546566; 	pind[2][2] = 0.011872272; 	pind[2][3] = 0.014916444; 	pind[2][4] = 0.01095902; 	pind[2][5] = 0.011111229; 	pind[2][6] = 0.011263437; 	pind[2][7] = 0.014003192; 	pind[2][8] = 0.012481106; 	pind[2][9] = 0.010654603; 	pind[2][10] = 0.012176689; 	pind[2][11] = 0.014612027; 	pind[2][12] = 0.012328898; 												
		pind[3][1] = 0.00977567; 	pind[3][2] = 0.008567441; 	pind[3][3] = 0.01076422; 	pind[3][4] = 0.007908407; 	pind[3][5] = 0.008018246; 	pind[3][6] = 0.008128085; 	pind[3][7] = 0.010105186; 	pind[3][8] = 0.009006797; 	pind[3][9] = 0.007688729; 	pind[3][10] = 0.008787119; 	pind[3][11] = 0.010544542; 	pind[3][12] = 0.008896958; 												
		pind[4][1] = 0.008094975; 	pind[4][2] = 0.007094473; 	pind[4][3] = 0.008913568; 	pind[4][4] = 0.006548744; 	pind[4][5] = 0.006639699; 	pind[4][6] = 0.006730654; 	pind[4][7] = 0.00836784; 	pind[4][8] = 0.007458292; 	pind[4][9] = 0.006366834; 	pind[4][10] = 0.007276382; 	pind[4][11] = 0.008731659; 	pind[4][12] = 0.007367337; 												
		pind[5][1] = 0.007523465; 	pind[5][2] = 0.006593599; 	pind[5][3] = 0.008284265; 	pind[5][4] = 0.006086399; 	pind[5][5] = 0.006170932; 	pind[5][6] = 0.006255465; 	pind[5][7] = 0.007777065; 	pind[5][8] = 0.006931732; 	pind[5][9] = 0.005917332; 	pind[5][10] = 0.006762665; 	pind[5][11] = 0.008115198; 	pind[5][12] = 0.006847198; 												
		pind[6][1] = 0.00743723; 	pind[6][2] = 0.006518022; 	pind[6][3] = 0.008189309; 	pind[6][4] = 0.006016635; 	pind[6][5] = 0.0061002; 	pind[6][6] = 0.006183764; 	pind[6][7] = 0.007687923; 	pind[6][8] = 0.006852279; 	pind[6][9] = 0.005849507; 	pind[6][10] = 0.00668515; 	pind[6][11] = 0.00802218; 	pind[6][12] = 0.006768715; 												
		pind[7][1] = 0.007448339; 	pind[7][2] = 0.006527758; 	pind[7][3] = 0.008201542; 	pind[7][4] = 0.006025622; 	pind[7][5] = 0.006109312; 	pind[7][6] = 0.006193001; 	pind[7][7] = 0.007699406; 	pind[7][8] = 0.006862514; 	pind[7][9] = 0.005858244; 	pind[7][10] = 0.006695136; 	pind[7][11] = 0.008034163; 	pind[7][12] = 0.006778825; 												
		pind[8][1] = 0.007448339; 	pind[8][2] = 0.006527758; 	pind[8][3] = 0.008201542; 	pind[8][4] = 0.006025622; 	pind[8][5] = 0.006109312; 	pind[8][6] = 0.006193001; 	pind[8][7] = 0.007699406; 	pind[8][8] = 0.006862514; 	pind[8][9] = 0.005858244; 	pind[8][10] = 0.006695136; 	pind[8][11] = 0.008034163; 	pind[8][12] = 0.006778825; 												
		pind[9][1] = 0.007454584; 	pind[9][2] = 0.006533231; 	pind[9][3] = 0.008208419; 	pind[9][4] = 0.006030675; 	pind[9][5] = 0.006114434; 	pind[9][6] = 0.006198194; 	pind[9][7] = 0.007705862; 	pind[9][8] = 0.006868269; 	pind[9][9] = 0.005863156; 	pind[9][10] = 0.00670075; 	pind[9][11] = 0.0080409; 	pind[9][12] = 0.006784509; 												
		pind[10][1] = 0.007390905; 	pind[10][2] = 0.006477422; 	pind[10][3] = 0.0081383; 	pind[10][4] = 0.005979159; 	pind[10][5] = 0.006062203; 	pind[10][6] = 0.006145247; 	pind[10][7] = 0.007640036; 	pind[10][8] = 0.006809598; 	pind[10][9] = 0.005813071; 	pind[10][10] = 0.00664351; 	pind[10][11] = 0.007972212; 	pind[10][12] = 0.006726554; 												
		pind[11][1] = 0.007378324; 	pind[11][2] = 0.006466396; 	pind[11][3] = 0.008124446; 	pind[11][4] = 0.005968981; 	pind[11][5] = 0.006051884; 	pind[11][6] = 0.006134786; 	pind[11][7] = 0.007627031; 	pind[11][8] = 0.006798006; 	pind[11][9] = 0.005803176; 	pind[11][10] = 0.006632201; 	pind[11][11] = 0.007958641; 	pind[11][12] = 0.006715104; 												
		pind[12][1] = 0.00748318; 	pind[12][2] = 0.006558292; 	pind[12][3] = 0.008239906; 	pind[12][4] = 0.006053808; 	pind[12][5] = 0.006137889; 	pind[12][6] = 0.00622197; 	pind[12][7] = 0.007735422; 	pind[12][8] = 0.006894615; 	pind[12][9] = 0.005885647; 	pind[12][10] = 0.006726454; 	pind[12][11] = 0.008071745; 	pind[12][12] = 0.006810535; 												
		pind[13][1] = 0.007745019; 	pind[13][2] = 0.00678777; 	pind[13][3] = 0.008528223; 	pind[13][4] = 0.006265634; 	pind[13][5] = 0.006352656; 	pind[13][6] = 0.006439679; 	pind[13][7] = 0.008006087; 	pind[13][8] = 0.00713586; 	pind[13][9] = 0.006091588; 	pind[13][10] = 0.006961815; 	pind[13][11] = 0.008354178; 	pind[13][12] = 0.007048838; 												
		pind[14][1] = 0.008164707; 	pind[14][2] = 0.007155586; 	pind[14][3] = 0.008990351; 	pind[14][4] = 0.006605156; 	pind[14][5] = 0.006696894; 	pind[14][6] = 0.006788633; 	pind[14][7] = 0.008439922; 	pind[14][8] = 0.007522539; 	pind[14][9] = 0.006421679; 	pind[14][10] = 0.007339062; 	pind[14][11] = 0.008806875; 	pind[14][12] = 0.007430801; 												
		pind[15][1] = 0.008703279; 	pind[15][2] = 0.007627593; 	pind[15][3] = 0.009583386; 	pind[15][4] = 0.007040855; 	pind[15][5] = 0.007138645; 	pind[15][6] = 0.007236434; 	pind[15][7] = 0.008996648; 	pind[15][8] = 0.008018752; 	pind[15][9] = 0.006845276; 	pind[15][10] = 0.007823172; 	pind[15][11] = 0.009387807; 	pind[15][12] = 0.007920962; 												
		pind[16][1] = 0.009291534; 	pind[16][2] = 0.008143142; 	pind[16][3] = 0.010231127; 	pind[16][4] = 0.007516746; 	pind[16][5] = 0.007621145; 	pind[16][6] = 0.007725545; 	pind[16][7] = 0.009604731; 	pind[16][8] = 0.008560739; 	pind[16][9] = 0.007307948; 	pind[16][10] = 0.00835194; 	pind[16][11] = 0.010022328; 	pind[16][12] = 0.008456339; 												
		pind[17][1] = 0.009850356; 	pind[17][2] = 0.008632896; 	pind[17][3] = 0.010846459; 	pind[17][4] = 0.007968827; 	pind[17][5] = 0.008079505; 	pind[17][6] = 0.008190184; 	pind[17][7] = 0.01018239; 	pind[17][8] = 0.009075609; 	pind[17][9] = 0.007747471; 	pind[17][10] = 0.008854253; 	pind[17][11] = 0.010625103; 	pind[17][12] = 0.008964931; 												
		pind[18][1] = 0.010321795; 	pind[18][2] = 0.009046067; 	pind[18][3] = 0.011365572; 	pind[18][4] = 0.008350216; 	pind[18][5] = 0.008466191; 	pind[18][6] = 0.008582166; 	pind[18][7] = 0.01066972; 	pind[18][8] = 0.009509968; 	pind[18][9] = 0.008118265; 	pind[18][10] = 0.009278018; 	pind[18][11] = 0.011133621; 	pind[18][12] = 0.009393993; 												
		pind[19][1] = 0.010710862; 	pind[19][2] = 0.009387047; 	pind[19][3] = 0.011793983; 	pind[19][4] = 0.008664967; 	pind[19][5] = 0.008785314; 	pind[19][6] = 0.00890566; 	pind[19][7] = 0.011071902; 	pind[19][8] = 0.009868435; 	pind[19][9] = 0.008424273; 	pind[19][10] = 0.009627741; 	pind[19][11] = 0.011553289; 	pind[19][12] = 0.009748088; 												
		pind[20][1] = 0.011138084; 	pind[20][2] = 0.009761467; 	pind[20][3] = 0.012264407; 	pind[20][4] = 0.009010585; 	pind[20][5] = 0.009135732; 	pind[20][6] = 0.009260879; 	pind[20][7] = 0.011513525; 	pind[20][8] = 0.010262055; 	pind[20][9] = 0.008760291; 	pind[20][10] = 0.010011761; 	pind[20][11] = 0.012014113; 	pind[20][12] = 0.010136908; 												
		pind[21][1] = 0.011902782; 	pind[21][2] = 0.010431652; 	pind[21][3] = 0.013106434; 	pind[21][4] = 0.009629217; 	pind[21][5] = 0.009762956; 	pind[21][6] = 0.009896695; 	pind[21][7] = 0.012304; 	pind[21][8] = 0.010966608; 	pind[21][9] = 0.009361739; 	pind[21][10] = 0.01069913; 	pind[21][11] = 0.012838956; 	pind[21][12] = 0.010832869; 												
		pind[22][1] = 0.013557102; 	pind[22][2] = 0.011881505; 	pind[22][3] = 0.014928045; 	pind[22][4] = 0.010967544; 	pind[22][5] = 0.011119871; 	pind[22][6] = 0.011272198; 	pind[22][7] = 0.014014083; 	pind[22][8] = 0.012490813; 	pind[22][9] = 0.01066289; 	pind[22][10] = 0.012186159; 	pind[22][11] = 0.014623391; 	pind[22][12] = 0.012338486; 												
		pind[23][1] = 0.0151389; 	pind[23][2] = 0.0132678; 	pind[23][3] = 0.0166698; 	pind[23][4] = 0.0122472; 	pind[23][5] = 0.0124173; 	pind[23][6] = 0.0125874; 	pind[23][7] = 0.0156492; 	pind[23][8] = 0.0139482; 	pind[23][9] = 0.011907; 	pind[23][10] = 0.013608; 	pind[23][11] = 0.0163296; 	pind[23][12] = 0.0137781; 												
		pind[24][1] = 0.016955568; 	pind[24][2] = 0.014859936; 	pind[24][3] = 0.018670176; 	pind[24][4] = 0.013716864; 	pind[24][5] = 0.013907376; 	pind[24][6] = 0.014097888; 	pind[24][7] = 0.017527104; 	pind[24][8] = 0.015621984; 	pind[24][9] = 0.01333584; 	pind[24][10] = 0.01524096; 	pind[24][11] = 0.018289152; 	pind[24][12] = 0.015431472; 												
																									
		bio.getAbort()[2] = 0.035; 	bio.getAbort()[3] = 0.025; 	bio.getAbort()[4] = 0.015; 	bio.getAbort()[5] = 0.005; 	bio.getAbort()[6] = 0.003; 	bio.getAbort()[7] = 0.001; 	bio.getAbort()[8] = 0.001; 	bio.getAbort()[9] = 0; 																
		bio.getVwp()[1] = 3; 	bio.getVwp()[2] = 3; 	bio.getVwp()[3] = 3; 	bio.setLbm(16); 	bio.setTimebreeding(0); 	bio.setP_semen(20); 	bio.setMaxlact(12); 																	
		concrisk[1] = 1; 	concrisk[2] = 0.9; 	concrisk[3] = 0.88; 	concrisk[4] = 0.86; 	concrisk[5] = 0.84; 	concrisk[6] = 0.82; 	concrisk[7] = 0.8; 	concrisk[8] = 0.78; 	concrisk[9] = 0.76; 	concrisk[10] = 0.74; 	concrisk[11] = 0.72; 	concrisk[12] = 0.700000000000001; 												
																									
		bio.getHeatdetectionrate()[2][1] = 0.55; 	bio.getHeatdetectionrate()[2][2] = 0.55; 	bio.getHeatdetectionrate()[2][3] = 0.55; 	bio.getHeatdetectionrate()[2][4] = 0.55; 	bio.getHeatdetectionrate()[2][5] = 0.55; 	bio.getHeatdetectionrate()[2][6] = 0.55; 	bio.getHeatdetectionrate()[2][7] = 0.55; 	bio.getHeatdetectionrate()[2][8] = 0.55; 	bio.getHeatdetectionrate()[2][9] = 0.55; 	bio.getHeatdetectionrate()[2][10] = 0.55; 	bio.getHeatdetectionrate()[2][11] = 0.55; 	bio.getHeatdetectionrate()[2][12] = 0.55; 												
		bio.getHeatdetectionrate()[3][1] = 0.55; 	bio.getHeatdetectionrate()[3][2] = 0.55; 	bio.getHeatdetectionrate()[3][3] = 0.55; 	bio.getHeatdetectionrate()[3][4] = 0.55; 	bio.getHeatdetectionrate()[3][5] = 0.55; 	bio.getHeatdetectionrate()[3][6] = 0.55; 	bio.getHeatdetectionrate()[3][7] = 0.55; 	bio.getHeatdetectionrate()[3][8] = 0.55; 	bio.getHeatdetectionrate()[3][9] = 0.55; 	bio.getHeatdetectionrate()[3][10] = 0.55; 	bio.getHeatdetectionrate()[3][11] = 0.55; 	bio.getHeatdetectionrate()[3][12] = 0.55; 												
		bio.getHeatdetectionrate()[4][1] = 0.55; 	bio.getHeatdetectionrate()[4][2] = 0.55; 	bio.getHeatdetectionrate()[4][3] = 0.55; 	bio.getHeatdetectionrate()[4][4] = 0.55; 	bio.getHeatdetectionrate()[4][5] = 0.55; 	bio.getHeatdetectionrate()[4][6] = 0.55; 	bio.getHeatdetectionrate()[4][7] = 0.55; 	bio.getHeatdetectionrate()[4][8] = 0.55; 	bio.getHeatdetectionrate()[4][9] = 0.55; 	bio.getHeatdetectionrate()[4][10] = 0.55; 	bio.getHeatdetectionrate()[4][11] = 0.55; 	bio.getHeatdetectionrate()[4][12] = 0.55; 												
		bio.getHeatdetectionrate()[5][1] = 0.55; 	bio.getHeatdetectionrate()[5][2] = 0.55; 	bio.getHeatdetectionrate()[5][3] = 0.55; 	bio.getHeatdetectionrate()[5][4] = 0.55; 	bio.getHeatdetectionrate()[5][5] = 0.55; 	bio.getHeatdetectionrate()[5][6] = 0.55; 	bio.getHeatdetectionrate()[5][7] = 0.55; 	bio.getHeatdetectionrate()[5][8] = 0.55; 	bio.getHeatdetectionrate()[5][9] = 0.55; 	bio.getHeatdetectionrate()[5][10] = 0.55; 	bio.getHeatdetectionrate()[5][11] = 0.55; 	bio.getHeatdetectionrate()[5][12] = 0.55; 												
		bio.getHeatdetectionrate()[6][1] = 0.55; 	bio.getHeatdetectionrate()[6][2] = 0.55; 	bio.getHeatdetectionrate()[6][3] = 0.55; 	bio.getHeatdetectionrate()[6][4] = 0.55; 	bio.getHeatdetectionrate()[6][5] = 0.55; 	bio.getHeatdetectionrate()[6][6] = 0.55; 	bio.getHeatdetectionrate()[6][7] = 0.55; 	bio.getHeatdetectionrate()[6][8] = 0.55; 	bio.getHeatdetectionrate()[6][9] = 0.55; 	bio.getHeatdetectionrate()[6][10] = 0.55; 	bio.getHeatdetectionrate()[6][11] = 0.55; 	bio.getHeatdetectionrate()[6][12] = 0.55; 												
		bio.getHeatdetectionrate()[7][1] = 0.55; 	bio.getHeatdetectionrate()[7][2] = 0.55; 	bio.getHeatdetectionrate()[7][3] = 0.55; 	bio.getHeatdetectionrate()[7][4] = 0.55; 	bio.getHeatdetectionrate()[7][5] = 0.55; 	bio.getHeatdetectionrate()[7][6] = 0.55; 	bio.getHeatdetectionrate()[7][7] = 0.55; 	bio.getHeatdetectionrate()[7][8] = 0.55; 	bio.getHeatdetectionrate()[7][9] = 0.55; 	bio.getHeatdetectionrate()[7][10] = 0.55; 	bio.getHeatdetectionrate()[7][11] = 0.55; 	bio.getHeatdetectionrate()[7][12] = 0.55; 												
		bio.getHeatdetectionrate()[8][1] = 0.55; 	bio.getHeatdetectionrate()[8][2] = 0.55; 	bio.getHeatdetectionrate()[8][3] = 0.55; 	bio.getHeatdetectionrate()[8][4] = 0.55; 	bio.getHeatdetectionrate()[8][5] = 0.55; 	bio.getHeatdetectionrate()[8][6] = 0.55; 	bio.getHeatdetectionrate()[8][7] = 0.55; 	bio.getHeatdetectionrate()[8][8] = 0.55; 	bio.getHeatdetectionrate()[8][9] = 0.55; 	bio.getHeatdetectionrate()[8][10] = 0.55; 	bio.getHeatdetectionrate()[8][11] = 0.55; 	bio.getHeatdetectionrate()[8][12] = 0.55; 												
		bio.getHeatdetectionrate()[9][1] = 0.55; 	bio.getHeatdetectionrate()[9][2] = 0.55; 	bio.getHeatdetectionrate()[9][3] = 0.55; 	bio.getHeatdetectionrate()[9][4] = 0.55; 	bio.getHeatdetectionrate()[9][5] = 0.55; 	bio.getHeatdetectionrate()[9][6] = 0.55; 	bio.getHeatdetectionrate()[9][7] = 0.55; 	bio.getHeatdetectionrate()[9][8] = 0.55; 	bio.getHeatdetectionrate()[9][9] = 0.55; 	bio.getHeatdetectionrate()[9][10] = 0.55; 	bio.getHeatdetectionrate()[9][11] = 0.55; 	bio.getHeatdetectionrate()[9][12] = 0.55; 												
		bio.getHeatdetectionrate()[10][1] = 0.55; 	bio.getHeatdetectionrate()[10][2] = 0.55; 	bio.getHeatdetectionrate()[10][3] = 0.55; 	bio.getHeatdetectionrate()[10][4] = 0.55; 	bio.getHeatdetectionrate()[10][5] = 0.55; 	bio.getHeatdetectionrate()[10][6] = 0.55; 	bio.getHeatdetectionrate()[10][7] = 0.55; 	bio.getHeatdetectionrate()[10][8] = 0.55; 	bio.getHeatdetectionrate()[10][9] = 0.55; 	bio.getHeatdetectionrate()[10][10] = 0.55; 	bio.getHeatdetectionrate()[10][11] = 0.55; 	bio.getHeatdetectionrate()[10][12] = 0.55; 												
		bio.getHeatdetectionrate()[11][1] = 0.55; 	bio.getHeatdetectionrate()[11][2] = 0.55; 	bio.getHeatdetectionrate()[11][3] = 0.55; 	bio.getHeatdetectionrate()[11][4] = 0.55; 	bio.getHeatdetectionrate()[11][5] = 0.55; 	bio.getHeatdetectionrate()[11][6] = 0.55; 	bio.getHeatdetectionrate()[11][7] = 0.55; 	bio.getHeatdetectionrate()[11][8] = 0.55; 	bio.getHeatdetectionrate()[11][9] = 0.55; 	bio.getHeatdetectionrate()[11][10] = 0.55; 	bio.getHeatdetectionrate()[11][11] = 0.55; 	bio.getHeatdetectionrate()[11][12] = 0.55; 												
		bio.getHeatdetectionrate()[12][1] = 0.55; 	bio.getHeatdetectionrate()[12][2] = 0.55; 	bio.getHeatdetectionrate()[12][3] = 0.55; 	bio.getHeatdetectionrate()[12][4] = 0.55; 	bio.getHeatdetectionrate()[12][5] = 0.55; 	bio.getHeatdetectionrate()[12][6] = 0.55; 	bio.getHeatdetectionrate()[12][7] = 0.55; 	bio.getHeatdetectionrate()[12][8] = 0.55; 	bio.getHeatdetectionrate()[12][9] = 0.55; 	bio.getHeatdetectionrate()[12][10] = 0.55; 	bio.getHeatdetectionrate()[12][11] = 0.55; 	bio.getHeatdetectionrate()[12][12] = 0.55; 												
		bio.getHeatdetectionrate()[13][1] = 0.55; 	bio.getHeatdetectionrate()[13][2] = 0.55; 	bio.getHeatdetectionrate()[13][3] = 0.55; 	bio.getHeatdetectionrate()[13][4] = 0.55; 	bio.getHeatdetectionrate()[13][5] = 0.55; 	bio.getHeatdetectionrate()[13][6] = 0.55; 	bio.getHeatdetectionrate()[13][7] = 0.55; 	bio.getHeatdetectionrate()[13][8] = 0.55; 	bio.getHeatdetectionrate()[13][9] = 0.55; 	bio.getHeatdetectionrate()[13][10] = 0.55; 	bio.getHeatdetectionrate()[13][11] = 0.55; 	bio.getHeatdetectionrate()[13][12] = 0.55; 												
		bio.getHeatdetectionrate()[14][1] = 0.55; 	bio.getHeatdetectionrate()[14][2] = 0.55; 	bio.getHeatdetectionrate()[14][3] = 0.55; 	bio.getHeatdetectionrate()[14][4] = 0.55; 	bio.getHeatdetectionrate()[14][5] = 0.55; 	bio.getHeatdetectionrate()[14][6] = 0.55; 	bio.getHeatdetectionrate()[14][7] = 0.55; 	bio.getHeatdetectionrate()[14][8] = 0.55; 	bio.getHeatdetectionrate()[14][9] = 0.55; 	bio.getHeatdetectionrate()[14][10] = 0.55; 	bio.getHeatdetectionrate()[14][11] = 0.55; 	bio.getHeatdetectionrate()[14][12] = 0.55; 												
		bio.getHeatdetectionrate()[15][1] = 0.55; 	bio.getHeatdetectionrate()[15][2] = 0.55; 	bio.getHeatdetectionrate()[15][3] = 0.55; 	bio.getHeatdetectionrate()[15][4] = 0.55; 	bio.getHeatdetectionrate()[15][5] = 0.55; 	bio.getHeatdetectionrate()[15][6] = 0.55; 	bio.getHeatdetectionrate()[15][7] = 0.55; 	bio.getHeatdetectionrate()[15][8] = 0.55; 	bio.getHeatdetectionrate()[15][9] = 0.55; 	bio.getHeatdetectionrate()[15][10] = 0.55; 	bio.getHeatdetectionrate()[15][11] = 0.55; 	bio.getHeatdetectionrate()[15][12] = 0.55; 												
																									
		bio.getConceptionrate()[0][2][1] = 0.39406; 	bio.getConceptionrate()[0][2][2] = 0.4211; 	bio.getConceptionrate()[0][2][3] = 0.3535; 	bio.getConceptionrate()[0][2][4] = 0.3197; 	bio.getConceptionrate()[0][2][5] = 0.36364; 	bio.getConceptionrate()[0][2][6] = 0.33322; 	bio.getConceptionrate()[0][2][7] = 0.34674; 	bio.getConceptionrate()[0][2][8] = 0.40758; 	bio.getConceptionrate()[0][2][9] = 0.38054; 	bio.getConceptionrate()[0][2][10] = 0.36026; 	bio.getConceptionrate()[0][2][11] = 0.38392; 	bio.getConceptionrate()[0][2][12] = 0.43462; 												
		bio.getConceptionrate()[0][3][1] = 0.4219; 	bio.getConceptionrate()[0][3][2] = 0.4515; 	bio.getConceptionrate()[0][3][3] = 0.3775; 	bio.getConceptionrate()[0][3][4] = 0.3405; 	bio.getConceptionrate()[0][3][5] = 0.3886; 	bio.getConceptionrate()[0][3][6] = 0.3553; 	bio.getConceptionrate()[0][3][7] = 0.3701; 	bio.getConceptionrate()[0][3][8] = 0.4367; 	bio.getConceptionrate()[0][3][9] = 0.4071; 	bio.getConceptionrate()[0][3][10] = 0.3849; 	bio.getConceptionrate()[0][3][11] = 0.4108; 	bio.getConceptionrate()[0][3][12] = 0.4663; 												
		bio.getConceptionrate()[0][4][1] = 0.41929; 	bio.getConceptionrate()[0][4][2] = 0.44865; 	bio.getConceptionrate()[0][4][3] = 0.37525; 	bio.getConceptionrate()[0][4][4] = 0.33855; 	bio.getConceptionrate()[0][4][5] = 0.38626; 	bio.getConceptionrate()[0][4][6] = 0.35323; 	bio.getConceptionrate()[0][4][7] = 0.36791; 	bio.getConceptionrate()[0][4][8] = 0.43397; 	bio.getConceptionrate()[0][4][9] = 0.40461; 	bio.getConceptionrate()[0][4][10] = 0.38259; 	bio.getConceptionrate()[0][4][11] = 0.40828; 	bio.getConceptionrate()[0][4][12] = 0.46333; 												
		bio.getConceptionrate()[0][5][1] = 0.41668; 	bio.getConceptionrate()[0][5][2] = 0.4458; 	bio.getConceptionrate()[0][5][3] = 0.373; 	bio.getConceptionrate()[0][5][4] = 0.3366; 	bio.getConceptionrate()[0][5][5] = 0.38392; 	bio.getConceptionrate()[0][5][6] = 0.35116; 	bio.getConceptionrate()[0][5][7] = 0.36572; 	bio.getConceptionrate()[0][5][8] = 0.43124; 	bio.getConceptionrate()[0][5][9] = 0.40212; 	bio.getConceptionrate()[0][5][10] = 0.38028; 	bio.getConceptionrate()[0][5][11] = 0.40576; 	bio.getConceptionrate()[0][5][12] = 0.46036; 												
		bio.getConceptionrate()[0][6][1] = 0.41146; 	bio.getConceptionrate()[0][6][2] = 0.4401; 	bio.getConceptionrate()[0][6][3] = 0.3685; 	bio.getConceptionrate()[0][6][4] = 0.3327; 	bio.getConceptionrate()[0][6][5] = 0.37924; 	bio.getConceptionrate()[0][6][6] = 0.34702; 	bio.getConceptionrate()[0][6][7] = 0.36134; 	bio.getConceptionrate()[0][6][8] = 0.42578; 	bio.getConceptionrate()[0][6][9] = 0.39714; 	bio.getConceptionrate()[0][6][10] = 0.37566; 	bio.getConceptionrate()[0][6][11] = 0.40072; 	bio.getConceptionrate()[0][6][12] = 0.45442; 												
		bio.getConceptionrate()[0][7][1] = 0.4045; 	bio.getConceptionrate()[0][7][2] = 0.4325; 	bio.getConceptionrate()[0][7][3] = 0.3625; 	bio.getConceptionrate()[0][7][4] = 0.3275; 	bio.getConceptionrate()[0][7][5] = 0.373; 	bio.getConceptionrate()[0][7][6] = 0.3415; 	bio.getConceptionrate()[0][7][7] = 0.3555; 	bio.getConceptionrate()[0][7][8] = 0.4185; 	bio.getConceptionrate()[0][7][9] = 0.3905; 	bio.getConceptionrate()[0][7][10] = 0.3695; 	bio.getConceptionrate()[0][7][11] = 0.394; 	bio.getConceptionrate()[0][7][12] = 0.4465; 												
		bio.getConceptionrate()[0][8][1] = 0.3958; 	bio.getConceptionrate()[0][8][2] = 0.423; 	bio.getConceptionrate()[0][8][3] = 0.355; 	bio.getConceptionrate()[0][8][4] = 0.321; 	bio.getConceptionrate()[0][8][5] = 0.3652; 	bio.getConceptionrate()[0][8][6] = 0.3346; 	bio.getConceptionrate()[0][8][7] = 0.3482; 	bio.getConceptionrate()[0][8][8] = 0.4094; 	bio.getConceptionrate()[0][8][9] = 0.3822; 	bio.getConceptionrate()[0][8][10] = 0.3618; 	bio.getConceptionrate()[0][8][11] = 0.3856; 	bio.getConceptionrate()[0][8][12] = 0.4366; 												
		bio.getConceptionrate()[0][9][1] = 0.3871; 	bio.getConceptionrate()[0][9][2] = 0.4135; 	bio.getConceptionrate()[0][9][3] = 0.3475; 	bio.getConceptionrate()[0][9][4] = 0.3145; 	bio.getConceptionrate()[0][9][5] = 0.3574; 	bio.getConceptionrate()[0][9][6] = 0.3277; 	bio.getConceptionrate()[0][9][7] = 0.3409; 	bio.getConceptionrate()[0][9][8] = 0.4003; 	bio.getConceptionrate()[0][9][9] = 0.3739; 	bio.getConceptionrate()[0][9][10] = 0.3541; 	bio.getConceptionrate()[0][9][11] = 0.3772; 	bio.getConceptionrate()[0][9][12] = 0.4267; 												
		bio.getConceptionrate()[0][10][1] = 0.37405; 	bio.getConceptionrate()[0][10][2] = 0.39925; 	bio.getConceptionrate()[0][10][3] = 0.33625; 	bio.getConceptionrate()[0][10][4] = 0.30475; 	bio.getConceptionrate()[0][10][5] = 0.3457; 	bio.getConceptionrate()[0][10][6] = 0.31735; 	bio.getConceptionrate()[0][10][7] = 0.32995; 	bio.getConceptionrate()[0][10][8] = 0.38665; 	bio.getConceptionrate()[0][10][9] = 0.36145; 	bio.getConceptionrate()[0][10][10] = 0.34255; 	bio.getConceptionrate()[0][10][11] = 0.3646; 	bio.getConceptionrate()[0][10][12] = 0.41185; 												
		bio.getConceptionrate()[0][11][1] = 0.361; 	bio.getConceptionrate()[0][11][2] = 0.385; 	bio.getConceptionrate()[0][11][3] = 0.325; 	bio.getConceptionrate()[0][11][4] = 0.295; 	bio.getConceptionrate()[0][11][5] = 0.334; 	bio.getConceptionrate()[0][11][6] = 0.307; 	bio.getConceptionrate()[0][11][7] = 0.319; 	bio.getConceptionrate()[0][11][8] = 0.373; 	bio.getConceptionrate()[0][11][9] = 0.349; 	bio.getConceptionrate()[0][11][10] = 0.331; 	bio.getConceptionrate()[0][11][11] = 0.352; 	bio.getConceptionrate()[0][11][12] = 0.397; 												
		bio.getConceptionrate()[0][12][1] = 0.34708; 	bio.getConceptionrate()[0][12][2] = 0.3698; 	bio.getConceptionrate()[0][12][3] = 0.313; 	bio.getConceptionrate()[0][12][4] = 0.2846; 	bio.getConceptionrate()[0][12][5] = 0.32152; 	bio.getConceptionrate()[0][12][6] = 0.29596; 	bio.getConceptionrate()[0][12][7] = 0.30732; 	bio.getConceptionrate()[0][12][8] = 0.35844; 	bio.getConceptionrate()[0][12][9] = 0.33572; 	bio.getConceptionrate()[0][12][10] = 0.31868; 	bio.getConceptionrate()[0][12][11] = 0.33856; 	bio.getConceptionrate()[0][12][12] = 0.38116; 												
		bio.getConceptionrate()[0][13][1] = 0.33055; 	bio.getConceptionrate()[0][13][2] = 0.35175; 	bio.getConceptionrate()[0][13][3] = 0.29875; 	bio.getConceptionrate()[0][13][4] = 0.27225; 	bio.getConceptionrate()[0][13][5] = 0.3067; 	bio.getConceptionrate()[0][13][6] = 0.28285; 	bio.getConceptionrate()[0][13][7] = 0.29345; 	bio.getConceptionrate()[0][13][8] = 0.34115; 	bio.getConceptionrate()[0][13][9] = 0.31995; 	bio.getConceptionrate()[0][13][10] = 0.30405; 	bio.getConceptionrate()[0][13][11] = 0.3226; 	bio.getConceptionrate()[0][13][12] = 0.36235; 												
		bio.getConceptionrate()[0][14][1] = 0.31141; 	bio.getConceptionrate()[0][14][2] = 0.33085; 	bio.getConceptionrate()[0][14][3] = 0.28225; 	bio.getConceptionrate()[0][14][4] = 0.25795; 	bio.getConceptionrate()[0][14][5] = 0.28954; 	bio.getConceptionrate()[0][14][6] = 0.26767; 	bio.getConceptionrate()[0][14][7] = 0.27739; 	bio.getConceptionrate()[0][14][8] = 0.32113; 	bio.getConceptionrate()[0][14][9] = 0.30169; 	bio.getConceptionrate()[0][14][10] = 0.28711; 	bio.getConceptionrate()[0][14][11] = 0.30412; 	bio.getConceptionrate()[0][14][12] = 0.34057; 												
		bio.getConceptionrate()[0][15][1] = 0.29749; 	bio.getConceptionrate()[0][15][2] = 0.31565; 	bio.getConceptionrate()[0][15][3] = 0.27025; 	bio.getConceptionrate()[0][15][4] = 0.24755; 	bio.getConceptionrate()[0][15][5] = 0.27706; 	bio.getConceptionrate()[0][15][6] = 0.25663; 	bio.getConceptionrate()[0][15][7] = 0.26571; 	bio.getConceptionrate()[0][15][8] = 0.30657; 	bio.getConceptionrate()[0][15][9] = 0.28841; 	bio.getConceptionrate()[0][15][10] = 0.27479; 	bio.getConceptionrate()[0][15][11] = 0.29068; 	bio.getConceptionrate()[0][15][12] = 0.32473; 												
																									
		bio.getReprocost()[2][1] = 0; 	bio.getReprocost()[2][2] = 0; 	bio.getReprocost()[2][3] = 0; 	bio.getReprocost()[2][4] = 0; 	bio.getReprocost()[2][5] = 0; 	bio.getReprocost()[2][6] = 0; 	bio.getReprocost()[2][7] = 0; 	bio.getReprocost()[2][8] = 0; 	bio.getReprocost()[2][9] = 0; 	bio.getReprocost()[2][10] = 0; 	bio.getReprocost()[2][11] = 0; 	bio.getReprocost()[2][12] = 0; 												
		bio.getReprocost()[3][1] = 0; 	bio.getReprocost()[3][2] = 0; 	bio.getReprocost()[3][3] = 0; 	bio.getReprocost()[3][4] = 0; 	bio.getReprocost()[3][5] = 0; 	bio.getReprocost()[3][6] = 0; 	bio.getReprocost()[3][7] = 0; 	bio.getReprocost()[3][8] = 0; 	bio.getReprocost()[3][9] = 0; 	bio.getReprocost()[3][10] = 0; 	bio.getReprocost()[3][11] = 0; 	bio.getReprocost()[3][12] = 0; 												
		bio.getReprocost()[4][1] = 0; 	bio.getReprocost()[4][2] = 0; 	bio.getReprocost()[4][3] = 0; 	bio.getReprocost()[4][4] = 0; 	bio.getReprocost()[4][5] = 0; 	bio.getReprocost()[4][6] = 0; 	bio.getReprocost()[4][7] = 0; 	bio.getReprocost()[4][8] = 0; 	bio.getReprocost()[4][9] = 0; 	bio.getReprocost()[4][10] = 0; 	bio.getReprocost()[4][11] = 0; 	bio.getReprocost()[4][12] = 0; 												
		bio.getReprocost()[5][1] = 0; 	bio.getReprocost()[5][2] = 0; 	bio.getReprocost()[5][3] = 0; 	bio.getReprocost()[5][4] = 0; 	bio.getReprocost()[5][5] = 0; 	bio.getReprocost()[5][6] = 0; 	bio.getReprocost()[5][7] = 0; 	bio.getReprocost()[5][8] = 0; 	bio.getReprocost()[5][9] = 0; 	bio.getReprocost()[5][10] = 0; 	bio.getReprocost()[5][11] = 0; 	bio.getReprocost()[5][12] = 0; 												
		bio.getReprocost()[6][1] = 0; 	bio.getReprocost()[6][2] = 0; 	bio.getReprocost()[6][3] = 0; 	bio.getReprocost()[6][4] = 0; 	bio.getReprocost()[6][5] = 0; 	bio.getReprocost()[6][6] = 0; 	bio.getReprocost()[6][7] = 0; 	bio.getReprocost()[6][8] = 0; 	bio.getReprocost()[6][9] = 0; 	bio.getReprocost()[6][10] = 0; 	bio.getReprocost()[6][11] = 0; 	bio.getReprocost()[6][12] = 0; 												
		bio.getReprocost()[7][1] = 0; 	bio.getReprocost()[7][2] = 0; 	bio.getReprocost()[7][3] = 0; 	bio.getReprocost()[7][4] = 0; 	bio.getReprocost()[7][5] = 0; 	bio.getReprocost()[7][6] = 0; 	bio.getReprocost()[7][7] = 0; 	bio.getReprocost()[7][8] = 0; 	bio.getReprocost()[7][9] = 0; 	bio.getReprocost()[7][10] = 0; 	bio.getReprocost()[7][11] = 0; 	bio.getReprocost()[7][12] = 0; 												
		bio.getReprocost()[8][1] = 0; 	bio.getReprocost()[8][2] = 0; 	bio.getReprocost()[8][3] = 0; 	bio.getReprocost()[8][4] = 0; 	bio.getReprocost()[8][5] = 0; 	bio.getReprocost()[8][6] = 0; 	bio.getReprocost()[8][7] = 0; 	bio.getReprocost()[8][8] = 0; 	bio.getReprocost()[8][9] = 0; 	bio.getReprocost()[8][10] = 0; 	bio.getReprocost()[8][11] = 0; 	bio.getReprocost()[8][12] = 0; 												
		bio.getReprocost()[9][1] = 0; 	bio.getReprocost()[9][2] = 0; 	bio.getReprocost()[9][3] = 0; 	bio.getReprocost()[9][4] = 0; 	bio.getReprocost()[9][5] = 0; 	bio.getReprocost()[9][6] = 0; 	bio.getReprocost()[9][7] = 0; 	bio.getReprocost()[9][8] = 0; 	bio.getReprocost()[9][9] = 0; 	bio.getReprocost()[9][10] = 0; 	bio.getReprocost()[9][11] = 0; 	bio.getReprocost()[9][12] = 0; 												
		bio.getReprocost()[10][1] = 0; 	bio.getReprocost()[10][2] = 0; 	bio.getReprocost()[10][3] = 0; 	bio.getReprocost()[10][4] = 0; 	bio.getReprocost()[10][5] = 0; 	bio.getReprocost()[10][6] = 0; 	bio.getReprocost()[10][7] = 0; 	bio.getReprocost()[10][8] = 0; 	bio.getReprocost()[10][9] = 0; 	bio.getReprocost()[10][10] = 0; 	bio.getReprocost()[10][11] = 0; 	bio.getReprocost()[10][12] = 0; 												
		bio.getReprocost()[11][1] = 0; 	bio.getReprocost()[11][2] = 0; 	bio.getReprocost()[11][3] = 0; 	bio.getReprocost()[11][4] = 0; 	bio.getReprocost()[11][5] = 0; 	bio.getReprocost()[11][6] = 0; 	bio.getReprocost()[11][7] = 0; 	bio.getReprocost()[11][8] = 0; 	bio.getReprocost()[11][9] = 0; 	bio.getReprocost()[11][10] = 0; 	bio.getReprocost()[11][11] = 0; 	bio.getReprocost()[11][12] = 0; 												
		bio.getReprocost()[12][1] = 0; 	bio.getReprocost()[12][2] = 0; 	bio.getReprocost()[12][3] = 0; 	bio.getReprocost()[12][4] = 0; 	bio.getReprocost()[12][5] = 0; 	bio.getReprocost()[12][6] = 0; 	bio.getReprocost()[12][7] = 0; 	bio.getReprocost()[12][8] = 0; 	bio.getReprocost()[12][9] = 0; 	bio.getReprocost()[12][10] = 0; 	bio.getReprocost()[12][11] = 0; 	bio.getReprocost()[12][12] = 0; 												
		bio.getReprocost()[13][1] = 0; 	bio.getReprocost()[13][2] = 0; 	bio.getReprocost()[13][3] = 0; 	bio.getReprocost()[13][4] = 0; 	bio.getReprocost()[13][5] = 0; 	bio.getReprocost()[13][6] = 0; 	bio.getReprocost()[13][7] = 0; 	bio.getReprocost()[13][8] = 0; 	bio.getReprocost()[13][9] = 0; 	bio.getReprocost()[13][10] = 0; 	bio.getReprocost()[13][11] = 0; 	bio.getReprocost()[13][12] = 0; 												
		bio.getReprocost()[14][1] = 0; 	bio.getReprocost()[14][2] = 0; 	bio.getReprocost()[14][3] = 0; 	bio.getReprocost()[14][4] = 0; 	bio.getReprocost()[14][5] = 0; 	bio.getReprocost()[14][6] = 0; 	bio.getReprocost()[14][7] = 0; 	bio.getReprocost()[14][8] = 0; 	bio.getReprocost()[14][9] = 0; 	bio.getReprocost()[14][10] = 0; 	bio.getReprocost()[14][11] = 0; 	bio.getReprocost()[14][12] = 0; 												
		bio.getReprocost()[15][1] = 0; 	bio.getReprocost()[15][2] = 0; 	bio.getReprocost()[15][3] = 0; 	bio.getReprocost()[15][4] = 0; 	bio.getReprocost()[15][5] = 0; 	bio.getReprocost()[15][6] = 0; 	bio.getReprocost()[15][7] = 0; 	bio.getReprocost()[15][8] = 0; 	bio.getReprocost()[15][9] = 0; 	bio.getReprocost()[15][10] = 0; 	bio.getReprocost()[15][11] = 0; 	bio.getReprocost()[15][12] = 0; 												
																									
		bio.getBw()[1][1][0] = 533.918277; 	bio.getBw()[2][1][0] = 608.170352396009; 																						
		bio.getBw()[1][2][0] = 531.152227; 	bio.getBw()[2][2][0] = 592.35714814748; 																						
		bio.getBw()[1][3][0] = 535.758698; 	bio.getBw()[2][3][0] = 590.991842691727; 																						
		bio.getBw()[1][4][0] = 543.048479; 	bio.getBw()[2][4][0] = 595.996654240748; 																						
		bio.getBw()[1][5][0] = 550.759552; 	bio.getBw()[2][5][0] = 603.157647770755; 																						
		bio.getBw()[1][6][0] = 557.903142; 	bio.getBw()[2][6][0] = 610.41454653609; 																						
		bio.getBw()[1][7][0] = 564.132672; 	bio.getBw()[2][7][0] = 616.872991631013; 																						
		bio.getBw()[1][8][0] = 569.406035; 	bio.getBw()[2][8][0] = 622.243447427376; 																						
		bio.getBw()[1][9][0] = 573.810138; 	bio.getBw()[2][9][0] = 626.52937853903; 																						
		bio.getBw()[1][10][0] = 577.473662; 	bio.getBw()[2][10][0] = 629.859132981363; 																						
		bio.getBw()[1][11][0] = 580.526647; 	bio.getBw()[2][11][0] = 632.399266811821; 																						
		bio.getBw()[1][12][0] = 583.084125; 	bio.getBw()[2][12][0] = 634.312986975078; 																						
		bio.getBw()[1][13][0] = 585.241522; 	bio.getBw()[2][13][0] = 635.74281184044; 																						
		bio.getBw()[1][14][0] = 587.075323; 	bio.getBw()[2][14][0] = 636.805633923185; 																						
		bio.getBw()[1][15][0] = 588.645765; 	bio.getBw()[2][15][0] = 637.593660818512; 																						
		bio.getBw()[1][16][0] = 589.999946; 	bio.getBw()[2][16][0] = 638.177749079829; 																						
		bio.getBw()[1][17][0] = 591.174713; 	bio.getBw()[2][17][0] = 638.611359168179; 																						
		bio.getBw()[1][18][0] = 592.19905; 	bio.getBw()[2][18][0] = 638.934302334351; 																						
		bio.getBw()[1][19][0] = 593.095979; 	bio.getBw()[2][19][0] = 639.175951389153; 																						
		bio.getBw()[1][20][0] = 593.884008; 	bio.getBw()[2][20][0] = 639.357840063589; 																						
		bio.getBw()[1][21][0] = 594.57821; 	bio.getBw()[2][21][0] = 639.495692268235; 																						
		bio.getBw()[1][22][0] = 595.19103; 	bio.getBw()[2][22][0] = 639.600967194981; 																						
		bio.getBw()[1][23][0] = 595.732874; 	bio.getBw()[2][23][0] = 639.68201484413; 																						
		bio.getBw()[1][24][0] = 596.212545; 	bio.getBw()[2][24][0] = 639.744928852159; 																						
																									
		bio.getBwpreg()[1][1] = 0; 	bio.getBwpreg()[1][2] = 0; 	bio.getBwpreg()[1][3] = 0.114933031928; 	bio.getBwpreg()[1][4] = 1.17317319506323; 	bio.getBwpreg()[1][5] = 4.2764558735705; 	bio.getBwpreg()[1][6] = 10.527073487083; 	bio.getBwpreg()[1][7] = 21.0273184552337; 	bio.getBwpreg()[1][8] = 36.879483197656; 	bio.getBwpreg()[1][9] = 59.1858601339829; 															
		bio.getBwpreg()[2][1] = 0; 	bio.getBwpreg()[2][2] = 0; 	bio.getBwpreg()[2][3] = 0.114933031928; 	bio.getBwpreg()[2][4] = 1.17317319506323; 	bio.getBwpreg()[2][5] = 4.2764558735705; 	bio.getBwpreg()[2][6] = 10.527073487083; 	bio.getBwpreg()[2][7] = 21.0273184552337; 	bio.getBwpreg()[2][8] = 36.879483197656; 	bio.getBwpreg()[2][9] = 59.1858601339829; 															
																									
		serve[1] = 1; 																							
		serve[2] = 1; 																							
		serve[3] = 1; 																							
		serve[4] = 1; 																							
		serve[5] = 1; 																							
		serve[6] = 1; 																							
		serve[7] = 1; 																							
		serve[8] = 1; 																							
		serve[9] = 1; 																							
		serve[10] = 1; 																							
		serve[11] = 1; 																							
		serve[12] = 1; 																							
		serve[13] = 1; 																							
		serve[14] = 1; 																							
		serve[15] = 1; 																							
		serve[16] = 1; 																							
		serve[17] = 1; 																							
		serve[18] = 1; 																							
		serve[19] = 1; 																							
		serve[20] = 1; 																							
		serve[21] = 1; 																							
		serve[22] = 1; 																							
		serve[23] = 1; 																							
		serve[24] = 1; 																							
																									
		enter[1] = 1; 																							
		enter[2] = 1; 																							
		enter[3] = 1; 																							
		enter[4] = 1; 																							
		enter[5] = 1; 																							
		enter[6] = 1; 																							
		enter[7] = 1; 																							
		enter[8] = 1; 																							
		enter[9] = 1; 																							
		enter[10] = 1; 																							
		enter[11] = 1; 																							
		enter[12] = 1; 																							
		enter[13] = 1; 																							
		enter[14] = 1; 																							
		enter[15] = 1; 																							
		enter[16] = 1; 																							
		enter[17] = 1; 																							
		enter[18] = 1; 																							
		enter[19] = 1; 																							
		enter[20] = 1; 																							
		enter[21] = 1; 																							
		enter[22] = 1; 																							
		enter[23] = 1; 																							
		enter[24] = 1; 																							
																									
		p_heifer[1] = 2100; 	p_heifer[2] = 2100; 	p_heifer[3] = 2100; 	p_heifer[4] = 2100; 	p_heifer[5] = 2100; 	p_heifer[6] = 2100; 	p_heifer[7] = 2100; 	p_heifer[8] = 2100; 	p_heifer[9] = 2100; 	p_heifer[10] = 2100; 	p_heifer[11] = 2100; 	p_heifer[12] = 2100; 	p_heifer[13] = 2100; 	p_heifer[14] = 2100; 	p_heifer[15] = 2100; 	p_heifer[16] = 2100; 	p_heifer[17] = 2100; 	p_heifer[18] = 2100; 	p_heifer[19] = 2100; 	p_heifer[20] = 2100; 	p_heifer[21] = 2100; 	p_heifer[22] = 2100; 	p_heifer[23] = 2100; 	p_heifer[24] = 2100; 
		p_milk[1] = 35; 	p_milk[2] = 35; 	p_milk[3] = 35; 	p_milk[4] = 35; 	p_milk[5] = 35; 	p_milk[6] = 35; 	p_milk[7] = 35; 	p_milk[8] = 35; 	p_milk[9] = 35; 	p_milk[10] = 35; 	p_milk[11] = 35; 	p_milk[12] = 35; 	p_milk[13] = 35; 	p_milk[14] = 35; 	p_milk[15] = 35; 	p_milk[16] = 35; 	p_milk[17] = 35; 	p_milk[18] = 35; 	p_milk[19] = 35; 	p_milk[20] = 35; 	p_milk[21] = 35; 	p_milk[22] = 35; 	p_milk[23] = 35; 	p_milk[24] = 35; 
		p_bodyweight[1] = 0.8; 	p_bodyweight[2] = 0.8; 	p_bodyweight[3] = 0.8; 	p_bodyweight[4] = 0.8; 	p_bodyweight[5] = 0.8; 	p_bodyweight[6] = 0.8; 	p_bodyweight[7] = 0.8; 	p_bodyweight[8] = 0.8; 	p_bodyweight[9] = 0.8; 	p_bodyweight[10] = 0.8; 	p_bodyweight[11] = 0.8; 	p_bodyweight[12] = 0.8; 	p_bodyweight[13] = 0.8; 	p_bodyweight[14] = 0.8; 	p_bodyweight[15] = 0.8; 	p_bodyweight[16] = 0.8; 	p_bodyweight[17] = 0.8; 	p_bodyweight[18] = 0.8; 	p_bodyweight[19] = 0.8; 	p_bodyweight[20] = 0.8; 	p_bodyweight[21] = 0.8; 	p_bodyweight[22] = 0.8; 	p_bodyweight[23] = 0.8; 	p_bodyweight[24] = 0.8; 
																									
		bio.setWritepol(1); 																							
		bio.setWriterpo(1); 																							
		startSeason = "JAN"; 																							
		policy = "OPTIMAL"; 																							
		bio.setMaxmim(24); 																							
		bio.setCullmilk(0); 																							
		bio.setCullmargin(-999); 																							
		bio.setInterest(0); 																							
		bio.setP_loss(0); 																							
		bio.setInvcullpct(0.8); 																							
		bio.setFunk(1); 																							
		bio.setP_calf(200); 																							
		bio.setP_fixed_labor(0.5); 																							
		bio.setP_fixed_other(2); 																							
		bio.setP_other_dry(0); 																							
		bio.setP_other_lact(0.2); 																							
		bio.setP_tmrdmlac(0.192); 																							
		bio.setP_tmrdmdry(0.096); 																							
		bio.setDmi_dry(12); 																							
		bio.setPctfat(3.5); 																							
		bio.setPa_cv(12); 																							
		bio.setMilkrepeat(0.6); 																							
		bio.setP_labor(10); 																							
		bio.setTimefresh(30); 																							
		bio.setTimelact(213); 																							
		bio.setTimedry(91); 																							
		bio.getVetcost()[1] = 38; 																							
		bio.getVetcost()[2] = 23; 																							
		bio.getVetcost()[3] = 8; 																							
		bio.getVetcost()[4] = 1; 																							
																									
																									
																									
		milk4[4] = 1; 	milk4[5] = 1; 	milk4[6] = 1; 	milk4[7] = 1; 	milk4[8] = 1; 	milk4[9] = 1; 	milk4[10] = 1; 	milk4[11] = 1; 	milk4[12] = 1; 															
		
				
				
				
				
				
				
				
				
				
				
				
				
				
				
				
				
				

		
		
		
		
		
		
		
		
		
		
		
		/**
		 *  
		 * Copy Data Above this ... Do NOT touch the data BELOW.
		 * 
		 * 
		 */
		
		
		
		
		
		bio = updateEverything(bio, mlk, odds, pind, concrisk, serve, enter, 
				p_heifer, p_milk, p_bodyweight, startSeason, policy, milk4);
		
		
		
		return bio;
	}
	
	

	@SuppressWarnings("unused")
	public static BioRecord updateEverything(BioRecord bio, double mlk[][][], double odds[],
			double pind[][], double concrisk[], int serve[], int enter[], 
			double p_heifer[], double p_milk[], double p_bodyweight[], 
			String startSeason, String policy, double milk4[]){
		
		
		bio.getVwp()[1] = bio.getVwp()[1] - 1;
		bio.getVwp()[2] = bio.getVwp()[2] - 1;
		bio.getVwp()[3] = bio.getVwp()[3] - 1;
		bio.setLbm(bio.getLbm() - 1);
		
		
		
		for(int i = 1; i <= 2; i++)	
			for(int mpreg = 1; mpreg <= Constants.MPREG; mpreg++)
			{
				for(int mim = 1; mim <= Constants.MIM; mim++)
				{
					if(i == 1) bio.getBw()[1][mim][mpreg] = bio.getBw()[1][mim][0] + bio.getBwpreg()[i][mpreg];

					if(i == 2) 
						for(int lact = 2; lact <= Constants.LACT; lact++)
							bio.getBw()[lact][mim][mpreg] = bio.getBw()[2][mim][0] + bio.getBwpreg()[i][mpreg];


				}
			}
		
		
		if(startSeason.equalsIgnoreCase("JAN")) bio.setStart_sea(1);
		if(startSeason.equalsIgnoreCase("FEB")) bio.setStart_sea(2);
		if(startSeason.equalsIgnoreCase("MAR")) bio.setStart_sea(3);
		if(startSeason.equalsIgnoreCase("APR")) bio.setStart_sea(4);
		if(startSeason.equalsIgnoreCase("MAY")) bio.setStart_sea(5);
		if(startSeason.equalsIgnoreCase("JUN")) bio.setStart_sea(6);
		if(startSeason.equalsIgnoreCase("JUL")) bio.setStart_sea(7);
		if(startSeason.equalsIgnoreCase("AUG")) bio.setStart_sea(8);
		if(startSeason.equalsIgnoreCase("SEP")) bio.setStart_sea(9);
		if(startSeason.equalsIgnoreCase("OCT")) bio.setStart_sea(10);
		if(startSeason.equalsIgnoreCase("NOV")) bio.setStart_sea(11);
		if(startSeason.equalsIgnoreCase("DEC")) bio.setStart_sea(12);
		
		
		
		if(policy.equalsIgnoreCase("OPTIMAL")) bio.setPolicy(1);
		if(policy.equalsIgnoreCase("KEEPPREG")) bio.setPolicy(2);
		if(policy.equalsIgnoreCase("KEEPALL")) bio.setPolicy(3);
		if(policy.equalsIgnoreCase("USE_POL")) bio.setPolicy(0);
		
		
		if(bio.getMaxmim() <= bio.getLbm()) bio.setMaxmim(Constants.MIM); 
		
		

		//prices
		for(int i = 1; i <= 24; i++)
		{
			int sea = bio.getStart_sea() + i - 1;
			if(i <= 12) while(sea > Constants.SEA) sea = sea - Constants.SEA;
			else while(sea > Constants.SEA*2) sea = sea - Constants.SEA;
			bio.getServe()[sea] = serve[i];
			bio.getEnter()[sea] = enter[i];
			bio.getP_heifer()[sea] = p_heifer[i];
			bio.getP_milk()[sea] = p_milk[i];
			bio.getP_bodyweight()[sea] = p_bodyweight[i];
		}

		//milk
		//Van Arendonk has very little variation around low producing cows (10%): if milk yield is low, so is the
		//curr = 1 to 15 variation.  Instead we could have a constant variation, independent of mim.
		for(int lact = 1; lact <= 3; lact++)
			for(int mim = 1; mim <= 10; mim++)
				for(int sea = 1; sea <= Constants.SEA; sea++)
					mlk[lact][0][0] += mlk[lact][mim][sea] / (10 * Constants.SEA);	//average daily yield per lactation
	//	for(lact = 1; lact <= 3; lact++) printf("\n %d %.2f",lact, mlk[lact][0][0]); stop(0);

		bio.getMilk_mpreg()[0] = 1.0;
		
		/***
		 * bio_smy();											//calculate bio.getsmy[curr] using pa_cv
		 */
		
		Functions fun = new Functions();
		bio = fun.bio_smy(bio);
		
		double milk = 0;
		double avg = 0;
		double fcm = 0;
		double dmi = 0;
		double labor = 0;
		
		
		
		
		for(int sea = 1; sea <= 24; sea++)
			bio.getP_milk()[sea] = bio.getP_milk()[sea] / 100;		//price per kg milk
		for(int lact = 1; lact <= Constants.LACT; lact++)
			for(int mim = 1; mim <= Constants.MIM; mim++)
				for(int mpreg = 0; mpreg <= Constants.MPREG; mpreg++)
					for(int sea = 1; sea <= Constants.SEA; sea++)
					{
						if(lact == 1) { milk = mlk[1][mim][sea]; avg = mlk[1][0][0]; }
						if(lact == 2) { milk = mlk[2][mim][sea]; avg = mlk[2][0][0]; }
						if(lact == 3) { milk = mlk[3][mim][sea]; avg = mlk[3][0][0]; }
						if(lact >= 4) { milk = mlk[3][mim][sea] * milk4[lact]; avg = mlk[3][0][0] * milk4[lact]; }
						milk = milk * bio.getMilk_mpreg()[mpreg];				//pregnancy reduction
						for(int curr = 1; curr <= Constants.CURR; curr++)
						{
							bio.getMilkyield()[curr][lact][mim][mpreg][sea] = (bio.getSmy()[curr] / 100 * milk) * Constants.STAGE;

						//	bio.getMilkyield()[curr][lact][mim][mpreg][sea] = (milk + (bio.getsmy[curr]-100)/100 * avg); //* Constants.STAGE;
							if(bio.getMilkyield()[curr][lact][mim][mpreg][sea] < 0.0) bio.getMilkyield()[curr][lact][mim][mpreg][sea] = 0.0;

//if(lact == 1 && mim == 1) bio.getMilkyield()[curr][lact][mim][mpreg][sea] = 0.0;

							bio.getRev()[curr][lact][mim][mpreg][sea] = bio.getP_milk()[sea] * bio.getMilkyield()[curr][lact][mim][mpreg][sea];
							bio.getRev()[curr][lact][mim][mpreg][sea+12] = bio.getP_milk()[sea+12] * bio.getMilkyield()[curr][lact][mim][mpreg][sea];
							bio.getIofc()[curr][lact][mim][mpreg][sea] = bio.getRev()[curr][lact][mim][mpreg][sea];
							bio.getIofc()[curr][lact][mim][mpreg][sea+12] = bio.getRev()[curr][lact][mim][mpreg][sea+12];


						
						}
					}



		//(involuntary) culling
		for(int lact = 1; lact <= Constants.LACT; lact++)
		{
			for(int mim = 1; mim <= Constants.MIM; mim++)
				for(int sea = 1; sea <= Constants.SEA; sea++)
				{
					bio.getPind()[lact][mim][sea] 
						= pind[mim][sea] * odds[lact];
					if(bio.getPind()[lact][mim][sea] > 1) bio.getPind()[lact][mim][sea] = 1.0;
		//				= 0.02;
				
		//			if(sea == 1) printf("\nlact:%d mim:%d %.3lf",lact,mim,bio.getpind[lact][mim][sea]);
		//			else printf(" %.3lf",bio.getpind[lact][mim][sea]);
				}
		//	stop(0);
		}

		//reproduction
		for(int mim = 2; mim <= 15; mim++)
			for(int sea = 1; sea <= Constants.SEA; sea++)
				for(int lact = 1; lact <= Constants.LACT; lact++)
				{

			//	printf(" %.2f ",bio.getconceptionrate[0][2][1]);

			//	printf(" %2d %2d %2d %.2f ",mim,sea,lact,bio.getconceptionrate[0][mim][sea]);

					bio.getConceptionrate()[lact][mim][sea] = concrisk[lact] * bio.getConceptionrate()[0][mim][sea];
					if(bio.getConceptionrate()[lact][mim][sea] > 1.0) bio.getConceptionrate()[lact][mim][sea] = 1.0;
					
				//	printf("mim:%d sea:%d lact:%d  %f x concrisk:%f = %f",mim,sea,lact,bio.getconceptionrate[0][mim][sea],concrisk[lact],bio.getconceptionrate[lact][mim][sea]);
				//	stop(0);
				}


		//body weight
		for(int lact = 1; lact <= Constants.LACT; lact++)
			for(int mim = 1; mim <= Constants.MIM; mim++)
				for(int sea = 1; sea <= Constants.SEA; sea++)
				{
					if(lact >= 3) for(int mpreg = 0; mpreg <= Constants.MPREG; mpreg++) bio.getBw()[lact][mim][mpreg] = bio.getBw()[2][mim][mpreg];
					bio.getSel()[lact][mim][sea] = bio.getBw()[lact][mim][0] * bio.getP_bodyweight()[sea];
					bio.getSel()[lact][mim][sea+12] = bio.getBw()[lact][mim][0] * bio.getP_bodyweight()[sea+12];


				}
		//stop(0);
		//dry matter intake
		//other cost
		for(int curr = 1; curr <= Constants.CURR; curr++)
			for(int lact = 1; lact <= Constants.LACT; lact++)
				for(int mim = 1; mim <= Constants.MIM; mim++)
					for(int sea = 1; sea <= Constants.SEA; sea++)
						for(int mpreg = 0; mpreg <= Constants.MPREG; mpreg++)
						{


							if(bio.getMilkyield()[curr][lact][mim][mpreg][sea] > 0.01)		//cow is lactating
							{	//NRC[1112]4
								if(bio.getUnit() == 1)					//milk and bw entered as kg
								{
									fcm = 0.4 * bio.getMilkyield()[curr][lact][mim][mpreg][sea] / Constants.STAGE
										+ 0.15 * bio.getPctfat() * bio.getMilkyield()[curr][lact][mim][mpreg][sea] / Constants.STAGE;	//fat correct milk per day
									dmi = 0.372 * fcm + 0.0968 * Math.pow(bio.getBw()[lact][mim][mpreg],0.75) * (1 - Math.exp(- 0.192 * (((double)(mim-1)*4.34+2.17) + 3.67)));
									dmi = dmi * Constants.STAGE;
								}
								else if(bio.getUnit() == 0)				//milk and bw entered as lbs
								{									//calculations must happen with kg
									fcm = 0.4 * bio.getMilkyield()[curr][lact][mim][mpreg][sea] / Constants.STAGE
										+ 0.15 * bio.getPctfat() * bio.getMilkyield()[curr][lact][mim][mpreg][sea] / Constants.STAGE;	//fat correct milk per day
									dmi = 0.372 * (fcm/2.204624) + 0.0968 * Math.pow((bio.getBw()[lact][mim][mpreg]/2.204624),0.75) * (1 - Math.exp(- 0.192 * (((double)(mim-1)*4.34+2.17) + 3.67)));
									dmi = dmi * 2.204624 * Constants.STAGE;	//dmi as lbs
								}
/*								else
								{ printf("\n READ_BIO_FILE dmi error"); stop(0); }
*/								
								bio.getRev()[curr][lact][mim][mpreg][sea] -= dmi * bio.getP_tmrdmlac();
								bio.getRev()[curr][lact][mim][mpreg][sea] -= bio.getP_other_lact() * Constants.STAGE;
								bio.getRev()[curr][lact][mim][mpreg][sea+12] -= dmi * bio.getP_tmrdmlac();
								bio.getRev()[curr][lact][mim][mpreg][sea+12] -= bio.getP_other_lact() * Constants.STAGE;

								bio.getIofc()[curr][lact][mim][mpreg][sea] -= dmi * bio.getP_tmrdmlac();
								bio.getIofc()[curr][lact][mim][mpreg][sea] -= bio.getP_other_lact() * Constants.STAGE;
								bio.getIofc()[curr][lact][mim][mpreg][sea+12] -= dmi * bio.getP_tmrdmlac();
								bio.getIofc()[curr][lact][mim][mpreg][sea+12] -= bio.getP_other_lact() * Constants.STAGE;

								bio.getVarcost()[curr][lact][mim][mpreg][sea] += dmi * bio.getP_tmrdmlac();
								bio.getVarcost()[curr][lact][mim][mpreg][sea] += bio.getP_other_lact() * Constants.STAGE;
								bio.getVarcost()[curr][lact][mim][mpreg][sea+12] += dmi * bio.getP_tmrdmlac();
								bio.getVarcost()[curr][lact][mim][mpreg][sea+12] += bio.getP_other_lact() * Constants.STAGE;

							}
							if(bio.getMilkyield()[curr][lact][mim][mpreg][sea] < 0.01)		//cow is dry
							{
								dmi = bio.getDmi_dry() * Constants.STAGE;		//only maintenance
								bio.getRev()[curr][lact][mim][mpreg][sea] -= dmi * bio.getP_tmrdmdry();
								bio.getRev()[curr][lact][mim][mpreg][sea] -= bio.getP_other_dry() * Constants.STAGE;
								bio.getRev()[curr][lact][mim][mpreg][sea+12] -= dmi * bio.getP_tmrdmdry();
								bio.getRev()[curr][lact][mim][mpreg][sea+12] -= bio.getP_other_dry() * Constants.STAGE;

								bio.getIofc()[curr][lact][mim][mpreg][sea] -= dmi * bio.getP_tmrdmlac();
								bio.getIofc()[curr][lact][mim][mpreg][sea] -= bio.getP_other_lact() * Constants.STAGE;
								bio.getIofc()[curr][lact][mim][mpreg][sea+12] -= dmi * bio.getP_tmrdmlac();
								bio.getIofc()[curr][lact][mim][mpreg][sea+12] -= bio.getP_other_lact() * Constants.STAGE;

								bio.getVarcost()[curr][lact][mim][mpreg][sea] += dmi * bio.getP_tmrdmlac();
								bio.getVarcost()[curr][lact][mim][mpreg][sea] += bio.getP_other_lact() * Constants.STAGE;
								bio.getVarcost()[curr][lact][mim][mpreg][sea+12] += dmi * bio.getP_tmrdmlac();
								bio.getVarcost()[curr][lact][mim][mpreg][sea+12] += bio.getP_other_lact() * Constants.STAGE;

							}
							bio.getDmi()[curr][lact][mim][mpreg][sea]  = dmi;
					


						}
		//veterinary cost
		for(int mim = 1; mim <= Constants.MIM; mim++)
		{
			if(mim <= 4) bio.getVetcost()[mim] = bio.getVetcost()[mim];
			else bio.getVetcost()[mim] = bio.getVetcost()[4];
		}
		//labor cost (rev[] does not include reproductive labor)
		//labor minutes
		//veterinary cost
		for(int curr = 1; curr <= Constants.CURR; curr++)
			for(int lact = 1; lact <= Constants.LACT; lact++)
				for(int mim = 1; mim <= Constants.MIM; mim++)
					for(int sea = 1; sea <= Constants.SEA; sea++)
						for(int mpreg = 0; mpreg <= Constants.MPREG; mpreg++)
						{
							if(bio.getMilkyield()[curr][lact][mim][mpreg][sea] >= 0.01) labor = bio.getTimelact();	//lactating cow (minutes/month)
							if(bio.getMilkyield()[curr][lact][mim][mpreg][sea]  < 0.01) labor = bio.getTimedry();	//dry cow (minutes/month)
							if(mim == 1) labor += bio.getTimefresh();	//fresh cow (minutes/month)
							bio.getTimecows()[curr][lact][mim][mpreg][sea] = labor;
							
							bio.getRev()[curr][lact][mim][mpreg][sea] -= bio.getTimecows()[curr][lact][mim][mpreg][sea] / 60 * bio.getP_labor();
							bio.getRev()[curr][lact][mim][mpreg][sea] -= bio.getVetcost()[mim];
							bio.getRev()[curr][lact][mim][mpreg][sea+12] -= bio.getTimecows()[curr][lact][mim][mpreg][sea] / 60 * bio.getP_labor();
							bio.getRev()[curr][lact][mim][mpreg][sea+12] -= bio.getVetcost()[mim];

							bio.getVarcost()[curr][lact][mim][mpreg][sea] += bio.getTimecows()[curr][lact][mim][mpreg][sea] / 60 * bio.getP_labor();
							bio.getVarcost()[curr][lact][mim][mpreg][sea] += bio.getVetcost()[mim];
							bio.getVarcost()[curr][lact][mim][mpreg][sea+12] += bio.getTimecows()[curr][lact][mim][mpreg][sea] / 60 * bio.getP_labor();
							bio.getVarcost()[curr][lact][mim][mpreg][sea+12] += bio.getVetcost()[mim];


						}
					//	stop(0);
	
		
		
		
		
		
		
		return bio;
	}
	
	
	
	
}
